comment_reply_to_unapproved_comment

comment_reply_to_unapproved_comment

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_reply_to_unapproved_comment') is found 1 times:

  • /wp-includes/comment.php line 3532
    3528
    3529
    3530
    3531
    3532
    3533
    3534
    3535
    3536
    3537
    3538
             *
             * @param int $comment_post_id Post ID.
             * @param int $comment_parent  Parent comment ID.
             */
            do_action( 'comment_reply_to_unapproved_comment', $comment_post_id, $comment_parent );
     
            return new WP_Error( 'comment_reply_to_unapproved_comment', __( 'Sorry, replies to unapproved comments are not allowed.' ), 403 );
        }
    }
     
    $post = get_post( $comment_post_id );