On this page
do_action( 'widgets.php' )
Fires early when editing the widgets displayed in sidebars.
Source
File: wp-admin/includes/ajax-actions.php. View all references
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Related
Used By
| Used By | Description |
|---|---|
| wp_ajax_delete_inactive_widgets() wp-admin/includes/ajax-actions.php | Ajax handler for removing inactive widgets. |
| wp_ajax_save_widget() wp-admin/includes/ajax-actions.php | Ajax handler for saving a widget. |
| WP_Customize_Widgets::wp_ajax_update_widget() wp-includes/class-wp-customize-widgets.php | Updates widget settings asynchronously. |
| WP_Customize_Widgets::customize_controls_init() wp-includes/class-wp-customize-widgets.php | Ensures all widgets get loaded into the Customizer. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widgets-php