comment_row_actions

comment_row_actions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_row_actions') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 860
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    *                            'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam',
     *                            'Delete', and 'Trash'.
     * @param WP_Comment $comment The comment object.
     */
    $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
     
    $always_visible = false;
     
    $mode = get_user_setting( 'posts_list_mode', 'list' );
     
    if ( 'excerpt' === $mode ) {
  • /wp-admin/includes/dashboard.php line 806
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
        __( 'View' )
    );
     
    /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */
    $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
     
    $i = 0;
     
    foreach ( $actions as $action => $link ) {
        ++$i;

See this hook used in plugins: