restrict_manage_comments
Fires just before the Filter submit button for comment types.
Description
do_action( 'restrict_manage_comments' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'restrict_manage_comments' );
- The following example is for adding a hook callback.
- // define the restrict_manage_comments callback
- function action_restrict_manage_comments( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'restrict_manage_comments', 'action_restrict_manage_comments', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'restrict_manage_comments', 'action_restrict_manage_comments', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/class-wp-comments-list-table.php
- do_action( 'restrict_manage_comments' );