comment_status_links filter-hook . WP 2.5.0
Filters the comment status links.
Usage
add_filter( 'comment_status_links', 'filter_function_name_2401' ); function filter_function_name_2401( $status_links ){ // filter... return $status_links; }
- $status_links(string[])
- An associative array of fully-formed comment status links. Includes 'All', 'Mine', 'Pending', 'Approved', 'Spam', and 'Trash'.
Changelog
Since 2.5.0 | Introduced. |
Since 5.1.0 | The 'Mine' link was added. |
Where the hook is called
comment_status_links
wp-admin/includes/class-wp-comments-list-table.php 343
return apply_filters( 'comment_status_links', $status_links );