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.1

do_action('comment_form_comments_closed') is found 1 times:

  • /wp-includes/comment-template.php line 2506
    		 * 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();