WP_Customize_Selective_Refresh::init_preview() WordPress Method

The WP_Customize_Selective_Refresh::init_preview() function sets up the selective refresh previewer.

WP_Customize_Selective_Refresh::init_preview() #

Initializes the Customizer preview.


Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

	public function init_preview() {
		add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
		add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.5.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.