comment_form_comments_closed

comment_form_comments_closed

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_form_comments_closed') is found 1 times:

  • /wp-includes/comment-template.php line 2506
    2502
    2503
    2504
    2505
    2506
    2507
    2508
    2509
    2510
    2511
    2512
         * is called with an invalid post object or ID.
         *
         * @since 3.0.0
         */
        do_action( 'comment_form_comments_closed' );
     
        return;
    }
     
    $post_id       = $post->ID;
    $commenter     = wp_get_current_commenter();