Hi @shemakeswebsites,
Yes, this is possible.
1. Go to your Dashboard -> Profile Builder -> Settings -> Advanced settings -> and enable Save ‘Last Login’ date in usermeta
2. To create a new column in your Dashboard -> Users -> All Users page, and to display the last login date you will have to use the following custom code:
//Modify Users Table
function wppbc_users_table_columns( $column ) {
$column['last_login_date'] = 'Last Login';
return $column;
}
add_filter( 'manage_users_columns', 'wppbc_users_table_columns' );
//Add column value
function wppbc_users_table_row( $val, $column_name, $user_id ) {
switch ($column_name) {
case 'last_login_date' :
return get_user_meta($user_id, 'last_login_date', true);
break;
default:
}
return $val;
}
add_filter( 'manage_users_custom_column', 'wppbc_users_table_row', 10, 3 );
You can replace ‘Last Login’ with what name you want your column to have.
Note: You can use this code by adding it to your theme’s ‘functions.php’ file or by creating a new plugin as described here.
As with all modifications, please do a backup of your site before moving forward with it.
Best regards,