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

    (@cbutlerjr)

    Hi Jon,

    I think I might have gotten an email from you as well?

    The answer is that it depends entirely upon how the theme utilizes the Loop in the custom post type that you are referring to. I wouldn’t know without looking at the theme.

    @chad Butler – how can I unblock CPT through its declaration in functions.php? After installing your plugin CPT looks blocked.

    @chad Butler, I unlocked them in my case by making CPT inheriting post type behaviour and unchecking “block” by default. But it is still really interesting, can I somehow put “block/unblock” declaration into array of CPT definitions explicitly?

    Plugin Author Chad Butler

    (@cbutlerjr)

    There is a filter hook for the plugin as to whether it will block or unblock – wpmem_block. You might be able to do something using that filter.

    add_filter( 'wpmem_block', 'my_block_filter' );
    function my_block_filter( $block )
    {
        // the plugin's calculated value for blocking comes in
        // the parameter $block and will be a true/false boolean
    
        // you can do whatever in here to determine if you'll
        // change it or not. then just return a true/false boolean
        // when you are done...
    
        return $block;
    
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Extending wp-members to custom post types’ is closed to new replies.