Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group admin post only


  • vicky0007
    Participant

    @vicky0007

    hi

    i want to display that when user create group and in group join different member that mean every member can post on group but i want to display only group admin can post on wall not group member. please help me how i fix it. my english is poor so 🙂

    thanks in advance

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

  • danbp
    Moderator

    @danbp

    @vicky0007,

    do you mean a static message or as setting option ?

    You can deploy a static message on the create step #2, by using this snippet inside of bp-custom.php

    function bpex_custom_message_group_creation() {
    	if( bp_is_active( 'groups' ) && bp_is_group_creation_step( 'group-settings' ) ) :
    
    		echo 'Only group admins are allowed to post';
    
    	endif;
    }
    add_action( 'bp_before_group_settings_creation_step', 'bpex_custom_message_group_creation' );

    As setting option, read here:

    Group Extension API


    vicky0007
    Participant

    @vicky0007

    hi

    thanks for your reply. i create file bp-custom.php in wp-content/plugins/ directory and add your snippet but still member post on admin group. 🙁

    i mean only group admin can posts on group wall only, not group member. please help

    thanks

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