Last active
November 25, 2018 08:36
-
-
Save cryptexvinci/fb9ded623ac9f85847b1a1d21ce43319 to your computer and use it in GitHub Desktop.
Extending UM Theme Header Profile Section to add last login date & Time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('um_theme_header_profile_before', 'custom_add_last_login_time' ); | |
function custom_add_last_login_time(){ | |
echo '<div class="small alert alert-light" role="alert">'; | |
echo "Last Login : "; | |
echo um_user_last_login( get_current_user_id() ); | |
echo '</div>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment