WP_Customize_Selective_Refresh::init_preview()
Initializes the Customizer preview.
{} It's a method of the class: WP_Customize_Selective_Refresh{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh(); $WP_Customize_Selective_Refresh->init_preview();
Changelog
Since 4.5.0 | Introduced. |
Code of WP_Customize_Selective_Refresh::init_preview() WP Customize Selective Refresh::init preview WP 6.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' ) ); }