function update

This commit is contained in:
magepeopleteam 2022-05-01 02:29:25 +00:00
parent 1262f92fa7
commit 9834e907db
1 changed files with 13 additions and 8 deletions

View File

@ -4616,15 +4616,20 @@ add_action('admin_init', 'mep_flash_permalink_once');
* Developer: Ariful * Developer: Ariful
******************************************/ ******************************************/
function mep_get_user_display_name_by_email($email = null){ function mep_get_user_display_name_by_email($email = null){
if( empty($email) ){ // if( empty($email) ){
return false; // return false;
} // }
else{ // else{
$user_obj = get_user_by('email', $email); // $user_obj = get_user_by('email', $email);
$display_name = $user_obj->display_name; // $display_name = $user_obj->display_name;
// return $display_name;
// }
return get_bloginfo('name');
return $display_name;
}
} }
/******************************************************************* /*******************************************************************