Skip to:

How do you Remove the ”Request Membership” Nav Link?

  • techguy


    On a group that the user is not a member of, it has a link to “Request Membership” in the nav. There’s another one in the header, but I know where that one is. Does anyone know what I can do to remove the link to “Request Membership” on groups? I imagine I just need to do a remove_action, but I can’t find where the nav is added for this.

    Basically, I’ve written my own method for someone to join groups. So, I don’t want them to “Request Membership”

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

  • techguy


    I was able to do a little digging and figured this out. For some reason I always skip the files in the main BP folder. No wonder I’m missing so much. Anyway, here’s the code in case someone else wants to do it:

    //REMOVE the Request Membership Group Nav
    //Nav for this is found in buddypress/bp-groups.php on line 407
    function remove_request_membership_nav() {
    global $bp;

    bp_core_remove_subnav_item( $bp->groups->slug, ‘request-membership’ );
    add_action( ‘wp’, ‘remove_request_membership_nav’, 2 );



    How can I do something like this but remove the button that says ‘request membership’?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you Remove the ”Request Membership” Nav Link?’ is closed to new replies.
Skip to toolbar