- partially reviewed #1361;

This commit is contained in:
Mykyta Synelnikov
2023-12-01 00:30:37 +02:00
parent be9bb0f239
commit 2c5f396795
8 changed files with 24 additions and 25 deletions
+4 -2
View File
@@ -167,9 +167,11 @@ function um_get_redirect_url( $key ) {
* @return string
*/
function um_user_last_login_date( $user_id ) {
_deprecated_function( __FUNCTION__, '2.0.0' );
$value = get_user_meta( $user_id, '_um_last_login', true );
if ($value)
if ( $value ) {
return date_i18n( 'F d, Y', $value );
}
return '';
}
@@ -682,4 +684,4 @@ function um_user_submitted_registration( $style = false ) {
}
return $output;
}
}