function update
This commit is contained in:
parent
1262f92fa7
commit
9834e907db
|
@ -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 $display_name;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
return get_bloginfo('name');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
|
|
Loading…
Reference in New Issue