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