WP_Customize_Widgets::schedule_customize_register() WordPress Method

The WP_Customize_Widgets::schedule_customize_register() method is used to schedule a customization session for a particular user. This is useful if you want to make sure that a certain user (or group of users) is able to customize their widgets before anyone else.

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).


Top ↑

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' ) );
		}
	}


Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.