comment_on_password_protected

comment_on_password_protected

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_on_password_protected') is found 1 times:

  • /wp-includes/comment.php line 3615
    3611
    3612
    3613
    3614
    3615
    3616
    3617
    3618
    3619
    3620
    3621
         * @since 2.9.0
         *
         * @param int $comment_post_id Post ID.
         */
        do_action( 'comment_on_password_protected', $comment_post_id );
     
        return new WP_Error( 'comment_on_password_protected' );
     
    } else {
        /**
         * Fires before a comment is posted.