WP_Customize_Manager::get_document_title_template() WordPress Method

The WP_Customize_Manager::get_document_title_template() method is used to get the document title template for the current Customizer session.

WP_Customize_Manager::get_document_title_template() #

Gets the template string for the Customizer pane document title.


Return

(string) The template string for the document title.


Top ↑

Source

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;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More