WordPress.org

Ready to get started?Download WordPress

Forums

Private BuddyPress
Disable Private Buddypress via remove_filter, remove_action (2 posts)

  1. crazywhistlepig
    Member
    Posted 2 years ago #

    I'm using an external PHP file in a subdirectory of my buddypress installation and access it via /mydomain.com/api/whatever/index.php. It relies on WP functions so I include the /wp-blog-header.php . Unfortunately, this also locks my script via Private Buddypress. I need this directory to not be blocked. Is there a remove_ that I can include in my external PHP that will prevent PBP's reign over my file? I've tried:

    remove_all_filters('PrivateBuddyPress', 999);
    remove_all_actions( 'PrivateBuddyPress', 999 );

    function make_blog_directory_visible($visibility) {
    return false;
    }
    add_filter('pbp_login_required_check', 'make_blog_directory_visible',999);

    remove_action( 'wp', array( 'PrivateBuddyPress', 'AdminInit' ) );
    remove_action( 'wp', array( 'PrivateBuddyPress', 'LoginRedirect' ) );
    remove_all_filters('pbp_login_required_check',100);

    in various combinations to no success. Any help is sincerely appreciated.

    http://wordpress.org/extend/plugins/private-buddypress/

  2. crazywhistlepig
    Member
    Posted 2 years ago #

    Followup, seems PBP doesnt block if I navigate to:
    mydomain.com/api/whatever/index.php

    but blocks if I navigate to:
    mydomain.com/api/whatever/

    Any way to remove anything within /api/ from PBP protection?

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic