WP_Customize_Selective_Refresh::enqueue_preview_scripts
Enqueues preview scripts.
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->enqueue_preview_scripts();
Changelog
| Since 4.5.0 | Introduced. |
WP_Customize_Selective_Refresh::enqueue_preview_scripts() WP Customize Selective Refresh::enqueue preview scripts code WP 7.0
public function enqueue_preview_scripts() {
wp_enqueue_script( 'customize-selective-refresh' );
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 );
}