load-widgets.php
Fires early when editing the widgets displayed in sidebars.
Description
do_action( 'load-widgets.php' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'load-widgets.php' );
- The following example is for adding a hook callback.
- // define the load-widgets.php callback
- function action_load_widgets_php( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'load-widgets.php', 'action_load_widgets_php', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'load-widgets.php', 'action_load_widgets_php', 10, 0 );
Defined (4)
The action is defined in the following location(s).
- /wp-admin/includes/ajax-actions.php
- do_action( 'load-widgets.php' );
- do_action( 'load-widgets.php' );
- /wp-includes/class-wp-customize-widgets.php
- do_action( 'load-widgets.php' );
- do_action( 'load-widgets.php' );