WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Manager::stop_previewing_theme() WP 3.4.0

Stop previewing the selected theme.

Removes filters to change the current theme.

Это метод класса: WP_Customize_Manager

Хуки из метода
Возвращает

Null. Ничего.

Использование

$WP_Customize_Manager = new WP_Customize_Manager();
$var = $WP_Customize_Manager->stop_previewing_theme();

Список изменений

С версии 3.4.0 Введена.

Код WP Customize Manager::stop previewing theme: wp-includes/class-wp-customize-manager.php WP 5.3.2

<?php
public function stop_previewing_theme() {
	if ( ! $this->is_preview() ) {
		return;
	}

	$this->previewing = false;

	if ( ! $this->is_theme_active() ) {
		remove_filter( 'template', array( $this, 'get_template' ) );
		remove_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );
		remove_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );

		// @link: https://core.trac.wordpress.org/ticket/20027
		remove_filter( 'pre_option_stylesheet', array( $this, 'get_stylesheet' ) );
		remove_filter( 'pre_option_template', array( $this, 'get_template' ) );

		// Handle custom theme roots.
		remove_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) );
		remove_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) );
	}

	/**
	 * Fires once the Customizer theme preview has stopped.
	 *
	 * @since 3.4.0
	 *
	 * @param WP_Customize_Manager $this WP_Customize_Manager instance.
	 */
	do_action( 'stop_previewing_theme', $this );
}