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' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |