WP_Customize_Manager::get_document_title_template()
Gets the template string for the Customizer pane document title.
Метод класса: WP_Customize_Manager{}
Хуков нет.
Возвращает
Строку
. The template string for the document title.
Использование
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->get_document_title_template();
Список изменений
С версии 4.4.0 | Введена. |
Код WP_Customize_Manager::get_document_title_template() WP Customize Manager::get document title template WP 6.6.2
public function get_document_title_template() { if ( $this->is_theme_active() ) { /* translators: %s: Document title from the preview. */ $document_title_tmpl = __( 'Customize: %s' ); } else { /* translators: %s: Document title from the preview. */ $document_title_tmpl = __( 'Live Preview: %s' ); } $document_title_tmpl = html_entity_decode( $document_title_tmpl, ENT_QUOTES, 'UTF-8' ); // Because exported to JS and assigned to document.title. return $document_title_tmpl; }