PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
mojo-marketplace-wp-plugin
/
inc
<?php /** * File handles tracking the last time a user logged in. * * @package Mojo Marketplace */ add_action( 'wp_login', 'endurance_set_last_login', 10, 2 ); /** * Sets the time in ISO8601 format for the last time a user logged in. * * @param string $username Current user login name * @param \WP_User $user Current user object */ function endurance_set_last_login( $username, WP_User $user ) { // Store last login for current user update_user_meta( $user->ID, 'eig_last_login', date( 'c' ) ); // Store last login for entire site for any user that can impact content. if ( $user->has_cap( 'edit_posts' ) ) { update_option( 'eig_last_site_login', date( 'c' ) ); } }
[-] base.php
[edit]
[-] styles.php
[edit]
[-] track-last-login.php
[edit]
[-] tests.php
[edit]
[-] menu.php
[edit]
[-] branding.php
[edit]
[+]
..
[-] checkout.php
[edit]
[-] updates.php
[edit]
[-] coming-soon.php
[edit]
[-] cli-init.php
[edit]
[-] user-experience-tracking.php
[edit]
[-] jetpack.php
[edit]
[-] notifications.php
[edit]
[-] plugin-search.php
[edit]
[-] themes-widget.php
[edit]
[-] performance.php
[edit]
[-] plugin-php-compat-check.php
[edit]
[-] admin-page-notifications-blocker.php
[edit]
[-] shortcode-generator.php
[edit]
[+]
cli
[-] partners.php
[edit]
[-] staging.php
[edit]
[-] mojo-themes.php
[edit]