WordPress.org

Support

Support » Plugins and Hacks » is possible config the plugin to block only only certain categories?

is possible config the plugin to block only only certain categories?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    @cbutlerjr

    There are some filter hooks that can be used to do that. There is a list of hooks in the Users Guide that will allow you to build in custom features: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/

    i have been taking a look at the hooks and:

    i include this code at functions.php of my theme, but nothing happens

    add_filter( ‘wpmem_block’, ‘my_block_function’ );
    function my_block_function( $block )
    {
    if (is_category(‘noticias’))
    $block = false;
    return $block;
    }
    Default in wp members config , post is blocked, but with this code im trying to create an excepcion for noticias category, what im doing wrong?

    For testing i tried with $return false; directly in “my_block_function”, with this sentence in theory every post would unprotected because the function takes precedence over the configuration of the plugin right? but again nothing happens, all post still protected :-S

    Thxs & Regards

    i think that the problem is the new version of plugin (2.8.2) doesnt work in WP3.6b1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is possible config the plugin to block only only certain categories?’ is closed to new replies.