PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
admin-site-enhancements
/
classes
<?php namespace ASENHA\Classes; /** * Class for Last Login Column module * * @since 6.9.5 */ class Last_Login_Column { /** * Log date time when a user last logged in successfully * * @since 3.6.0 */ public function log_login_datetime( $user_login ) { $user = get_user_by( 'login', $user_login ); // by username if ( is_object( $user ) ) { if ( property_exists( $user, 'ID' ) ) { update_user_meta( $user->ID, 'asenha_last_login_on', time() ); } } } /** * Add Last Login column to users list table * * @since 3.6.0 */ public function add_last_login_column( $columns ) { $columns['asenha_last_login'] = __( 'Last Login', 'admin-site-enhancements' ); return $columns; } /** * Show last login info in the last login column * * @since 3.6.0 */ public function show_last_login_info( $output, $column_name, $user_id ) { if ( 'asenha_last_login' === $column_name ) { if ( !empty( get_user_meta( $user_id, 'asenha_last_login_on', true ) ) ) { $last_login_unixtime = (int) get_user_meta( $user_id, 'asenha_last_login_on', true ); $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); if ( function_exists( 'wp_date' ) ) { // $output = wp_date( 'M j, Y H:i', $last_login_unixtime ); $output = wp_date( $date_format . ' ' . $time_format, $last_login_unixtime ); } else { // $output = date_i18n( 'M j, Y H:i', $last_login_unixtime ); $output = date_i18n( $date_format . ' ' . $time_format, $last_login_unixtime ); } } else { $output = __( 'Never', 'admin-site-enhancements' ); } } return $output; } /** * Add custom CSS for the Last Login column * * @since 3.6.0 */ public function add_column_style() { ?> <style> .column-asenha_last_login { width: 124px; } </style> <?php } }
[-] class-hide-admin-bar.php
[edit]
[-] class-svg-upload.php
[edit]
[-] class-disable-gutenberg.php
[edit]
[-] class-cleanup-admin-bar.php
[edit]
[-] class-disable-rest-api.php
[edit]
[-] class-multiple-user-roles.php
[edit]
[-] class-disable-updates.php
[edit]
[-] class-image-upload-control.php
[edit]
[-] class-hide-admin-notices.php
[edit]
[-] class-content-duplication.php
[edit]
[-] class-insert-head-body-footer-code.php
[edit]
[-] class-media-replacement.php
[edit]
[-] class-password-protection.php
[edit]
[-] class-heartbeat-control.php
[edit]
[-] class-email-address-obfuscator.php
[edit]
[-] class-settings-sanitization.php
[edit]
[-] class-wp-config-transformer.php
[edit]
[-] class-content-order.php
[edit]
[-] class-custom-css.php
[edit]
[-] class-enhance-list-tables.php
[edit]
[-] class-login-logout-menu.php
[edit]
[-] class-search-engines-visibility.php
[edit]
[-] class-limit-login-attempts.php
[edit]
[-] class-disable-xml-rpc.php
[edit]
[-] class-common-methods.php
[edit]
[-] class-email-delivery.php
[edit]
[-] class-obfuscate-author-slugs.php
[edit]
[-] class-external-permalinks.php
[edit]
[-] class-wider-admin-menu.php
[edit]
[-] class-display-system-summary.php
[edit]
[-] class-admin-menu-organizer.php
[edit]
[-] class-redirect-fourofour.php
[edit]
[-] class-manage-robots-txt.php
[edit]
[-] class-site-identity-on-login-page.php
[edit]
[-] class-avif-upload.php
[edit]
[-] class-disable-comments.php
[edit]
[-] class-manage-ads-appads-txt.php
[edit]
[-] class-various-admin-ui-enhancements.php
[edit]
[-] class-admin-menu-svg-icon-mask.php
[edit]
[-] class-deactivation.php
[edit]
[-] class-activation.php
[edit]
[-] class-view-admin-as-role.php
[edit]
[-] class-maintenance-mode.php
[edit]
[-] class-custom-body-class.php
[edit]
[-] class-disable-dashboard-widgets.php
[edit]
[-] class-login-id-type.php
[edit]
[-] class-image-sizes-panel.php
[edit]
[-] class-redirect-after-login.php
[edit]
[-] class-settings-sections-fields.php
[edit]
[-] class-auto-publish-posts-with-missed-schedule.php
[edit]
[-] class-revisions-control.php
[edit]
[+]
..
[-] class-registration-date-column.php
[edit]
[-] class-disable-embeds.php
[edit]
[-] class-show-custom-taxonomy-filters.php
[edit]
[-] class-custom-nav-menu-items-in-new-tab.php
[edit]
[-] class-disable-feeds.php
[edit]
[-] class-captcha-protection.php
[edit]
[-] class-custom-admin-footer-text.php
[edit]
[-] class-change-login-url.php
[edit]
[-] class-last-login-column.php
[edit]
[-] class-settings-fields-render.php
[edit]
[-] class-disable-smaller-components.php
[edit]
[-] class-disable-author-archives.php
[edit]
[-] class-redirect-after-logout.php
[edit]
[-] class-open-external-links-in-new-tab.php
[edit]