restrict_manage_comments
Action HookDescription
Fires just before the Filter submit button for comment types.Hook Information
File Location |
wp-admin/includes/class-wp-comments-list-table.php
View on GitHub
|
Hook Type | Action |
Line Number | 419 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into restrict_manage_comments
add_action('restrict_manage_comments', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/includes/class-wp-comments-list-table.php:419
- How this hook is used in WordPress core
<?php
414 /**
415 * Fires just before the Filter submit button for comment types.
416 *
417 * @since 3.5.0
418 */
419 do_action( 'restrict_manage_comments' );
420
421 $output = ob_get_clean();
422
423 if ( ! empty( $output ) && $this->has_items() ) {
424 echo $output;
PHP Documentation
<?php
/**
* Fires just before the Filter submit button for comment types.
*
* @since 3.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/includes/class-wp-comments-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.