Skip to:
Content
Pages
Categories
Search
Top
Bottom

Restrict Add Group Page by Membership


  • superbikerider69
    Participant

    @superbikerider69

    Hi

    I have Buddypress installed on a WordPress site (4.4.2) and manage membership with Paid Membership Pro

    With Paid Membership Pro i have the add on so i can edit each individual page to restrict it to a certain membership level

    With the Groups in Buddypress, i want to let one membership level access the Groups and view them, but only a higher tier level membership to be able to add a new group.

    The page that loads to create a new group is – groups/create/step/group-details – so i need to be able to edit that so only a certain membership level can access it to create a group

    But that page isnt listed under pages and i can’t find it anywhere to edit it

    I am really sorry – this is my first crack at WordPress/Buddypress so i am wading in mud at the moment but i am sure there is a way to do it if anyone can understand from this what i am trying to do!!

    Any help would be appreciated

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

  • shanebp
    Moderator

    @shanebp

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\groups\create.php

    Add a conditional that checks user level at the top.

    Or use the do_action hook ( read 2nd answer ) at the top of that file:
    do_action( 'bp_before_create_group_page' );
    and write a function in your theme/functions.php


    superbikerider69
    Participant

    @superbikerider69

    Thanks very much for the reply

    So trying to understand, I copy the create file from the buddypress to the theme buddypress then add a conditional at the top of that copied file to check membership level?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict Add Group Page by Membership’ is closed to new replies.
Skip to toolbar