[wps-last-logged-in]
Purpose
Displays when a user last logged in.
Availability
Provided in the Core Plugin.
Customising
You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.
Example
[wps-last-logged-in]
Will simply show the last time the user logged in, re-acting if used on a profile page to the user being viewed.
[wps-last-logged-in user_id="user"]
Will show the last time the current user last logged in.
[wps-last-logged-in user_id="5"]
Will show the last time the user with an ID equal to 5 logged in.
Options
The following (which shows default values and an example of using the shortcode option) can be set via the admin dashboard (WPS Pro->Shortcodes) or added as options to the shortcode in your WordPress page, post or widget.
User | (user_id=”” or set to a user ID in shortcode) | |
Format for date | (date_format=”%s ago”) | |
No last login text | (not_logged_in_msg=”Not logged in recently.”) |