Skip to:
Content
Pages
Categories
Search
Top
Bottom

RESOLVED-Restrict Activity Posting To Admin


  • Dazzerr
    Participant

    @dazzerr

    Hello!

    As the title says, I would like that only admins can post to the group activity feed. However I would still like for members to be able to comment on activity posts (just not create them).

    Please help 😀

    Thank You,
    – D

Viewing 3 replies - 1 through 3 (of 3 total)

  • Mr. Vibe
    Participant

    @wpthemes

    You can try this :

    add_action('bp_before_group_activity_post_form',function(){
    	add_filter('bp_get_template_part',function($template){
    		if(!bp_group_is_admin()){
    			return false;
    		}
    		return $template;
    	});
    });

    Dazzerr
    Participant

    @dazzerr

    This works perfectly Mr. Vibe, thank you very much! 🙂


    heartcore
    Participant

    @heartcore

    where do you add that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar