Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove post-form


  • UrbanFix
    Participant

    @urbanfix

    Hi, I am using s2member and would like to remove the activity post form from the sitewide activity page using s2member conditionals.

    I am unsure what the best way to go about this would be.
    I have looked at activity/post-form and /bp-acti….template but im unsure where to add the if statement!

    I am removing the bp activity tab (and another one) using:

    <?php
    function uf_remove_nav_item() {
    
       if( current_user_cannot("access_s2member_level2") )
           bp_core_remove_nav_item('activity');
       if( current_user_cannot("access_s2member_level2") )
           bp_core_remove_nav_item('listings');
    }
    add_action( 'wp', 'uf_remove_nav_item' );
    ?>
    

    Any advice would be great,
    Thanks,
    UF

  • The topic ‘Remove post-form’ is closed to new replies.
Skip to toolbar