Tagged: buddypress, registration, WP dashboard
Hi Brajesh,
On our website, when members register using their email address, they need to activate the account from an email link sent to their address. Once they click on the link and activate the account, they are show a log in hyperlink which unfortunately leads to a WP dashboard (which doesn’t look professional).
On the website, we have a nice customised login dashboard. How do we direct new members to this customised login rather than the WP dashboard?
Is there any code we can place in the theme’s function.php?
Would really appreciate your kind advise.
Thanks!
Best regards
EdwardHi Edward,
This should work./** * Redirect to some page on activation. */ add_action( 'bp_core_activated_user', function( $user_id ) { if ( defined( 'DOING_AJAX' ) ) { return; } $url = site_url('/'); bp_core_redirect( $url ); }, 20 );
Please make the change in url to point to the correct page.
Regards
Brajesh
You must be logged in to reply to this topic.