To easily get the last active time from users (under Woocommerce extended plugin) we can easily query from database using the meta_key of "wc_last_active"
example query:
select user_id, meta_value from wp_usermeta where meta_key= "wc_last_active" and user_id in (11111,112222);
results:
+-------------+------------------+
| user_id | meta_value |
+-------------+-------------------+
| 11111 | 1556755200 |
| 112222 | 1566518400 |
example query:
select user_id, meta_value from wp_usermeta where meta_key= "wc_last_active" and user_id in (11111,112222);
results:
+-------------+------------------+
| user_id | meta_value |
+-------------+-------------------+
| 11111 | 1556755200 |
| 112222 | 1566518400 |
WooCommerce Checkout Field Editor - Best WooCommerce checkout manager plugin to quickly add or edit a field on WooCommerce checkout.
ReplyDelete