manage_comments_nav
Fires after the Filter submit button for comment types.
Usage
add_action( 'manage_comments_nav', 'wp_kama_manage_comments_nav_action', 10, 2 ); /** * Function for `manage_comments_nav` action-hook. * * @param string $comment_status The comment status name. * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. * * @return void */ function wp_kama_manage_comments_nav_action( $comment_status, $which ){ // action... }
- $comment_status(string)
- The comment status name.
Default: 'All' - $which(string)
- The location of the extra table nav markup: Either 'top' or 'bottom'.
Changelog
Since 2.5.0 | Introduced. |
Since 5.6.0 | The $which parameter was added. |
Where the hook is called
manage_comments_nav
wp-admin/includes/class-wp-comments-list-table.php 442
do_action( 'manage_comments_nav', $comment_status, $which );