Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable member directory


  • Pranav Jain
    Participant

    @pranavalwar

    I want to disable the members directory of buddypress which list all registered members. I have hidden it in my theme navigation by editing the file but it is still accessible by going to domain.com/members
    Please tell me a plugin or some other way to permanently disable it.

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

  • Pranav Jain
    Participant

    @pranavalwar

    What the hell is this? Isn’t there some one in this large community to help me out with my problems? :(


    Steven Word
    Participant

    @stevenkword

    Give this a try: Throw this code at the bottom of your functions.php. Make sure not to leave a trailing space.
    `
    //Disable members directory
    function disable_directory_members() {
    global $bp, $wp_query;
    $bp->is_directory = false;
    bp_core_redirect( $bp->root_domain );
    }
    add_action( ‘bp_core_action_directory_members’, ‘disable_directory_members’, 2 );
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable member directory’ is closed to new replies.
Skip to toolbar