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
// Open all comments (whether post is blocked or not) add_filter( 'wpmem_securify_comments', '__return_true' );
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