May 24, 2017 1:53 am
Hello, after the 1.3.0 update I am having issues with the admin bar. Before the "edit my profile", picture, and profile name from the admin bar would link to the wpforo profile, but now it links to the wp-admin profile. I am out of luck on how to fix it and it creates a big problem for my site.
2 Replies
May 24, 2017 3:41 am
This has been removed, we'll make it optional in future releases. Currently you can put this code in your WordPress theme functions.php file to bring it back:
function wpforo_change_default_edit_user_page( $url, $userid, $scheme ) {
global $wpforo;
return $wpforo->member->get_profile_url($userid);
}
add_filter( 'edit_profile_url', 'wpforo_change_default_edit_user_page', 10, 3 );
May 24, 2017 3:57 am
Nevermind thank you though, I just figured it out myself before you replied using this method.
add_filter( 'edit_profile_url', 'sdac_custom_profile_url', 10, 3 ); function sdac_custom_profile_url( $url, $user_id, $scheme ) { $url = site_url( '/forum/account/'. $current_user_id = get_current_user_id() .'/' ); return $url; }