Skip to content

Instantly share code, notes, and snippets.

@jessijean
Created October 30, 2013 20:14
Show Gist options
  • Save jessijean/7239465 to your computer and use it in GitHub Desktop.
Save jessijean/7239465 to your computer and use it in GitHub Desktop.
<?php
// hacks and mods will go here
/**
* Disables BuddyPress' registration process and fallsback to WordPress' one.
*/
function my_disable_bp_registration() {
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );
add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
function firmasite_redirect_bp_signup_page($page ){
return bp_get_root_domain() . '/wp-signup.php';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment