WP_Customize_Selective_Refresh::init_preview
Initializes the Customizer preview.
Method of the class: WP_Customize_Selective_Refresh{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh(); $WP_Customize_Selective_Refresh->init_preview();
Changelog
| Since 4.5.0 | Introduced. |
WP_Customize_Selective_Refresh::init_preview() WP Customize Selective Refresh::init preview code WP 7.0
public function init_preview() {
add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
}