add last_save data to meta
This commit is contained in:
parent
b6abe31182
commit
c2c8c1c617
1 changed files with 7 additions and 0 deletions
|
@ -111,6 +111,8 @@ endif;
|
|||
$registered_rel = human_time_diff( strtotime( $registered ) );
|
||||
$last_login = get_user_meta( $userid, 'last_login', true );
|
||||
$last_login_rel = human_time_diff( $last_login );
|
||||
$last_save = get_user_meta( $userid, 'last_save', true );
|
||||
$last_save_rel = human_time_diff( $last_save );
|
||||
?>
|
||||
<span class="user-meta"
|
||||
data-key="member-since"
|
||||
|
@ -122,6 +124,11 @@ endif;
|
|||
data-value="<?php echo esc_attr( $last_login ); ?>"
|
||||
data-relval="<?php echo esc_attr( $last_login_rel ); ?>">
|
||||
</span>
|
||||
<span class="user-meta"
|
||||
data-key="last-save"
|
||||
data-value="<?php echo esc_attr( $last_save ); ?>"
|
||||
data-relval="<?php echo esc_attr( $last_save_rel ); ?>">
|
||||
</span>
|
||||
|
||||
<div class="buttons">
|
||||
<span class="wp-block-button is-style-outline">
|
||||
|
|
Loading…
Reference in a new issue