On this page
apply_filters( 'comment_row_actions', string[] $actions, WP_Comment $comment )
Filters the action links displayed for each comment in the ‘Recent Comments’ dashboard widget.
Parameters
$actionsstring[]-
An array of comment actions. Default actions include:
'Approve','Unapprove','Edit','Reply','Spam','Delete', and'Trash'. $commentWP_Comment-
The comment object.
Source
File: wp-admin/includes/dashboard.php. View all references
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
Related
Used By
| Used By | Description |
|---|---|
| WP_Comments_List_Table::handle_row_actions() wp-admin/includes/class-wp-comments-list-table.php | Generates and displays row actions links. |
| _wp_dashboard_recent_comments_row() wp-admin/includes/dashboard.php | Outputs a row for the Recent Comments widget. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_row_actions