WP_Customize_Widgets::schedule_customize_register()
Ensures widgets are available for all types of previews.
Description
When in preview, hook to ‘customize_register’ for settings after WordPress is loaded so that all filters have been initialized (e.g. Widget Visibility).
Source
File: wp-includes/class-wp-customize-widgets.php
public function schedule_customize_register() { if ( is_admin() ) { $this->customize_register(); } else { add_action( 'wp', array( $this, 'customize_register' ) ); } }
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/schedule_customize_register