comments_open

comments_open

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.4

apply_filters('comments_open') is found 1 times:

  • /wp-includes/comment-template.php line 1317
    	 *
    	 * @param bool $comments_open Whether the current post is open for comments.
    	 * @param int  $post_id       The post ID.
    	 */
    	return apply_filters( 'comments_open', $comments_open, $post_id );
    }
    
    /**
     * Determines whether the current post is open for pings.
     *
     * For more information on this and similar theme functions, check out
    

See this hook used in plugins:

Examples using comments_open