WP_Customize_Selective_Refresh::enqueue_preview_scripts()

Enqueues preview scripts.

Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

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

Changelog

Version Description
4.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/enqueue_preview_scripts