Uses
Uses | Description |
---|---|
wp-includes/plugin.php: add_action() | Hooks a function on to a specific action. |
Adds hooks for the Customizer preview.
File: wp-includes/class-wp-customize-widgets.php
public function customize_preview_init() { add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue' ) ); add_action( 'wp_print_styles', array( $this, 'print_preview_css' ), 1 ); add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 ); }
Version | Description |
---|---|
3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/customize_preview_init