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

  1. crazywhistlepig
    Posted 4 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' ) );

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


  2. crazywhistlepig
    Posted 4 years ago #

    Followup, seems PBP doesnt block if I navigate to:

    but blocks if I navigate to:

    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

  • Private BuddyPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic