Skip to:
Content
Pages
Categories
Search
Top
Bottom

RESOLVED-Restrict Activity Posting To Admin


  • King Ding
    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)

  • wpthemes
    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;
    	});
    });

    King Ding
    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