comment_row_actions filter-hook . WP 2.6.0
Filters the action links displayed for each comment in the 'Recent Comments' dashboard widget.
Usage
add_filter( 'comment_row_actions', 'filter_function_name_6133', 10, 2 ); function filter_function_name_6133( $actions, $comment ){ // filter... return $actions; }
- $actions(string[])
- An array of comment actions.
Default: actions include: 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', 'Delete', and 'Trash' - $comment(WP_Comment)
- The comment object.
Where the hook is called
comment_row_actions
comment_row_actions
wp-admin/includes/dashboard.php 677
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
wp-admin/includes/class-wp-comments-list-table.php 657
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );