Action hook 'manage_comments_nav'

in WP Core File wp-admin/includes/class-wp-comments-list-table.php at line 446

View Source

manage_comments_nav

Action Hook
Description
Fires after 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 446

Hook Parameters

Type Name Description
string $comment_status The comment status name. Default 'All'.
string $which The location of the extra table nav markup: Either 'top' or 'bottom'.

Usage Examples

Basic Usage
<?php
// Hook into manage_comments_nav
add_action('manage_comments_nav', 'my_custom_function', 10, 2);

function my_custom_function($comment_status, $which) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-comments-list-table.php:446 - How this hook is used in WordPress core
<?php
 441  		 * @since 5.6.0 The `$which` parameter was added.
 442  		 *
 443  		 * @param string $comment_status The comment status name. Default 'All'.
 444  		 * @param string $which          The location of the extra table nav markup: Either 'top' or 'bottom'.
 445  		 */
 446  		do_action( 'manage_comments_nav', $comment_status, $which );
 447  
 448  		echo '</div>';
 449  	}
 450  
 451  	/**

PHP Documentation

<?php
/**
		 * Fires after the Filter submit button for comment types.
		 *
		 * @since 2.5.0
		 * @since 5.6.0 The `$which` parameter was added.
		 *
		 * @param string $comment_status The comment status name. Default 'All'.
		 * @param string $which          The location of the extra table nav markup: Either 'top' or 'bottom'.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-comments-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.