add last_save data to meta

This commit is contained in:
Evan Mullins 2019-03-19 10:57:41 -06:00
parent b6abe31182
commit c2c8c1c617

View file

@ -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">