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

Filters whether the current post is open for comments.


Parameters

$open bool
Whether the current post is open for comments.
$post_id int
The post ID.

Top ↑

Source

File: wp-includes/comment-template.php. View all references

return apply_filters( 'comments_open', $open, $post_id );


Top ↑

Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.