WP_Customize_Widgets::customize_controls_init()

In this article

Ensures all widgets get loaded into the Customizer.

Description

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

Source

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

Hooks

do_action( ‘load-widgets.php’ )

Fires early when editing the widgets displayed in sidebars.

do_action( ‘sidebar_admin_setup’ )

Fires early before the Widgets administration screen loads, after scripts are enqueued.

do_action( ‘widgets.php’ )

Fires early when editing the widgets displayed in sidebars.

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.