Welcome to the forum. If this is your first time you can browse around and see what you like. You will need to be registered in order to post!

Join our community and talk about tech, gaming, get support for computer problems and even sale your own product.
Considering supporting us by subscribing.

Disable BuddyPress Registration Page and Force Wordpress Registration Page

Wanted to know more about how to improve your site? Ask here!
Post Reply
User avatar
kachan64
USER_STATUS: Offline
Site Admin
Site Admin
Posts: 45
Joined: Sat Jul 01, 2017 9:35 pm
Contact:

Disable BuddyPress Registration Page and Force Wordpress Registration Page

Post by kachan64 » Thu Aug 01, 2019 8:36 am

If you are fed up with a custom registration page that BuddyPress creates, this is a simple fix.
There are several reasons why you may want to do this:
  • A custom themed login page that some plugin or even custom CSS creates.
  • Use external registration page.
  • Use captcha support from WordPress' default registration page.
I looked around for solutions and tried different codes in my theme's function.php and the result always failed. And finally I found BuddyPress' equivalent of function.php called bp-custom.php (read here on BuddyPress Codex).

And paste this simple code:

Code: Select all

<?php
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-login.php?action=register'; 
}
?>
Before:
buddypress register.png
buddypress register.png (12.96 KiB) Viewed 149 times
After:
wordpress register.png
wordpress register.png (10.37 KiB) Viewed 149 times
Image
PC: Custom Built Gaming PC
Monitor: Samsung S24D390H, Asus VE248H

Post Reply

Return to “Web Design Section”

Who is online

Users browsing this forum: No registered users and 1 guest

Topic Subscribers

1 user subscribed to this topic: kachan64