Uses
| Uses | Description |
|---|---|
| wp-includes/plugin.php: add_action() | Hooks a function on to a specific action. |
Initializes the Customizer preview.
File: wp-includes/customize/class-wp-customize-selective-refresh.php
public function init_preview() {
add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
} | 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/init_preview