-
shanebp replied to the topic Change login landingpage in the forum How-to & Troubleshooting 11 years, 6 months ago
Put this function in your theme/functions.php or plugins/bp-custom.php
And change ‘members’ to the slug of the page you want.
function custom_login_redirect_to($user_login, $user) {
bp_core_redirect( get_option('siteurl') . "/members/" );
}
add_action('wp_login', 'custom_login_redirect_to', 10, 2); -
bp-help replied to the topic Change login landingpage in the forum How-to & Troubleshooting 11 years, 6 months ago
@marialka
You could try adding something like this to bp-custom.php :
function bphelp_logged_in_visitor_redirect() {
global $bp;
if(is_user_logged_in()) {
wp_redirect( get_option('siteurl') . '/activity' );
}
}
add_filter('get_header','bphelp_logged_in_visitor_redirect',1);
Just change the line:
[Read more]
wp_redirect( get_option('siteurl') . '/activity'…
@marialka
Active 8 months ago