WP_Customize_Widgets::customize_preview_init() public WP 3.9.0
Adds hooks for the Customizer preview.
{} It's a method of the class: WP_Customize_Widgets{}
No Hooks.
Return
Null. Nothing.
Usage
$WP_Customize_Widgets = new WP_Customize_Widgets(); $WP_Customize_Widgets->customize_preview_init();
Changelog
Since 3.9.0 | Introduced. |
Code of WP_Customize_Widgets::customize_preview_init() WP Customize Widgets::customize preview init WP 5.6
public function customize_preview_init() {
add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue' ) );
add_action( 'wp_print_styles', array( $this, 'print_preview_css' ), 1 );
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 );
}