manage_comments_nav
Fires after the Filter submit button for comment types.
Использование
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(строка)
- The comment status name.
По умолчанию: 'All' - $which(строка)
- The location of the extra table nav markup: Either 'top' or 'bottom'.
Список изменений
С версии 2.5.0 | Введена. |
С версии 5.6.0 | The $which parameter was added. |
Где вызывается хук
manage_comments_nav
wp-admin/includes/class-wp-comments-list-table.php 442
do_action( 'manage_comments_nav', $comment_status, $which );