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