Uses
Uses | Description |
---|---|
wp-includes/functions.wp-scripts.php: wp_enqueue_script() | Enqueue a script. |
wp-includes/plugin.php: add_action() | Hooks a function on to a specific action. |
Enqueues preview scripts.
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 ); }
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/enqueue_preview_scripts