[Plugin: Private BuddyPress] Disable Private Buddypress via remove_filter, remove_action
-
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.
- The topic ‘[Plugin: Private BuddyPress] Disable Private Buddypress via remove_filter, remove_action’ is closed to new replies.