comment_closed

comment_closed

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_closed') is found 1 times:

  • /wp-includes/comment.php line 3573
    3569
    3570
    3571
    3572
    3573
    3574
    3575
    3576
    3577
    3578
    3579
         * @since 1.5.0
         *
         * @param int $comment_post_id Post ID.
         */
        do_action( 'comment_closed', $comment_post_id );
     
        return new WP_Error( 'comment_closed', __( 'Sorry, comments are closed for this item.' ), 403 );
     
    } elseif ( 'trash' === $status ) {
     
        /**