Description
Filters whether comments are open or not.
Based on WP’s “comments_open” filter. WP-Members’ default is that if the post is blocked, comments are blocked (“comments_open” is false).
Parameters
$open
(boolean)(required) True if current post is open for comments, otherwise false.
$post_id
(int)(optional) The post ID.
Usage
[snippet slug=wpmem_securify_comments lang=php]
Changelog
- Introduced in version 3.0.0
- 3.3.2 added $post_id
Source
wpmem_securify_comments is located in includes/class-wp-members.php