Description
Filters the array of hidden post IDs.
Parameters
$hidden
(array)(required) The array of hidden post IDs
Usage
add_filter( 'wpmem_hidden_posts', function( $hidden ) { /** * $hidden is a simple array of numeric post IDs. * For example: * * $hidden = array( "234", "123", "353" ); * * You can alter this as needed to return an array * that adds or removes post IDs based on conditional * criteria in your filter function */ return $hidden; });
Changelog
- Introduced in 3.3.4
Source
wpmem_hidden_posts is located in includes/class-wp-members.php