Hi,
Yes that’s possible using a bit of coding:
– Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db
– Add the following code to the end of it:
/*
* Filter the logged in message from the PB login form to display the first name instead of username
* The first name links to Edit Profile
*/
add_filter('wppb_login_message', 'wppbc_custom_logged_in_msg_3', 10, 3);
function wppbc_custom_logged_in_msg_3($logged_in_message, $user_id, $display_name){
$user = get_userdata ($user_id);
$first_name = $user->first_name;
$user_url = '<a href="http://www.yourdomain.com/edit-your-profile" class="wppb-author-url" title="'.$first_name.'">'.$first_name.'</a>';
$logout_url = '<a href="'.wp_logout_url( $redirectTo = wppb_curpageurl() ).'" class="wppb-logout-url" title="'.__( 'Log out of this account', 'profilebuilder' ).'">'. __( 'Log out', 'profilebuilder').' »</a>';
return '<p class="wppb-alert">' . sprintf(__( 'You are currently logged in as %1$s. %2$s', 'profilebuilder' ), $user_url, $logout_url ) . '</p><!-- .alert-->';
}
– Change the url in the $user_url variable with the url of your Edit profile page
– Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality
If you need help with any of this, please let me know!
Best regards,
Thread Starter
Skaks
(@skaks)
Thanks a lot!!! Works perfectly!
Great plugin and great support!
Regards.