WP_Customize_Selective_Refresh::enqueue_preview_scripts()publicWP 4.5.0

Enqueues preview scripts.

Method of the class: WP_Customize_Selective_Refresh{}

No Hooks.

Return

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() code WP 6.5.2

public function enqueue_preview_scripts() {
	wp_enqueue_script( 'customize-selective-refresh' );
	add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 );
}