Uses
Uses | Description |
---|---|
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::is_theme_active() | Checks if the current theme is active. |
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
Get the template string for the Customizer pane document title.
(string) The template string for the document title.
File: wp-includes/class-wp-customize-manager.php
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; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/get_document_title_template