WP_Customize_Widgets::customize_controls_init() WordPress Method

The WP_Customize_Widgets::customize_controls_init() method is used to initialize the customizer controls for the widgets panel. This method is called on the 'plugins_loaded' action.

WP_Customize_Widgets::customize_controls_init() #

Ensures all widgets get loaded into the Customizer.


Description

Note: these actions are also fired in wp_ajax_update_widget().


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php

	public function customize_controls_init() {
		/** This action is documented in wp-admin/includes/ajax-actions.php */
		do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

		/** This action is documented in wp-admin/includes/ajax-actions.php */
		do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

		/** This action is documented in wp-admin/widgets.php */
		do_action( 'sidebar_admin_setup' );
	}


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.

Show More