comments_open

Advertisement

Summery Summery

Filters whether the current post is open for comments.

Syntax Syntax

apply_filters( 'comments_open', bool $open, int $post_id )

Parameters Parameters

$open

Whether the current post is open for comments.

$post_id

The post ID.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply