manage_comments_nav WordPress Action Hook

The manage_comments_nav hook allows you to add extra navigation to the comments section of the WordPress admin. This can be useful for adding extra filters or for customizing the comments interface.

do_action( 'manage_comments_nav', string $comment_status, string $which ) #

Fires after the Filter submit button for comment types.


Parameters

$comment_status

(string)The comment status name. Default 'All'.

$which

(string)The location of the extra table nav markup: 'top' or 'bottom'.


Top ↑

Source

File: wp-admin/includes/class-wp-comments-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0The $which parameter was added.
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.