widgets.php
Fires early when editing the widgets displayed in sidebars.
Usage
add_action( 'widgets.php', 'wp_kama_widgets.php_action' ); /** * Function for `widgets.php` action-hook. * * @return void */ function wp_kama_widgets.php_action(){ // action... }
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
wp-admin/includes/ajax-actions.php 2373
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 339
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 1699
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/includes/ajax-actions.php 2478
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores