comment_row_actions
This is a WordPress - comment_row_actions hook. The plugin just uses it.
Filters the action links displayed for each comment in the Comments list table.
Usage
add_filter( 'comment_row_actions', 'wp_kama_comment_row_actions_filter', 10, 2 ); /** * Function for `comment_row_actions` filter-hook. * * @param string[] $actions An array of comment actions. * @param WP_Comment $comment The comment object. * * @return string[] */ function wp_kama_comment_row_actions_filter( $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
woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php 581
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $item );