Skip to:
Content
Pages
Categories
Search
Top
Bottom

help!, how to restrict members from posting activitys

  • @qaiys

    Participant

    Hi everyone,

    I want to restrict all members from posting activities

    Only Admins or Editor can publish activities, members can only like or comment.

    also , I’m using X theme in the website, so would you give me a code to insert

    in the function.php of the theme. otherwise, give me a solution if exist.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @buddycore

    Participant

    @qaiys

    Participant

    @buddycore thank you for repley ,

    but i think the problem is not resolved yet, can you tell me what is the complete code to add it
    next “groups_is_user_admin()” to resolve my problem ?

    @buddycore

    Participant

    I’m sorry, groups_is_user_admin() is the wrong function, you need something more like this current_user_can('editor') || current_user_can('administrator'). That needs to be wrapped in an IF statement.

    You would put that in your-theme/buddypress/activity/post-form.php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘help!, how to restrict members from posting activitys’ is closed to new replies.
Skip to toolbar