Description
This filter hook allows you to change the block setting for content. The is_blocked() function determines if content should be blocked or not and passes a true|false boolean to the securify function. If $block is true, content is blocked. By default, is_blocked tests for posts and pages, but any criteria could be tested in a custom filter function for blocking categories, tags, custom post types, etc.
Parameters
$block
(boolean)(required) A boolean to determine if content should be blocked or not.
$args
(array) (optional) An array of data used in the is_blocked() function.
Usage
Changelog
- Introduced in 2.7.5
- Moved to is_blocked() in WP_Members object in 3.0.0
Source
wpmem_block is located in inc/class-wp-members.php