Automattic\WooCommerce\Admin\API\Reports\Customers
DataStore::update_registered_customer_via_last_active()
Update the database if the "last active" meta value was changed. Function expects to be hooked into the added_user_meta updated_user_meta
Method of the class: DataStore{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = DataStore::update_registered_customer_via_last_active( $meta_id, $user_id, $meta_key );
- $meta_id(int) (required)
- ID of updated metadata entry.
- $user_id(int) (required)
- ID of the user being updated.
- $meta_key(string) (required)
- Meta key being updated.
DataStore::update_registered_customer_via_last_active() DataStore::update registered customer via last active code WC 9.3.3
public static function update_registered_customer_via_last_active( $meta_id, $user_id, $meta_key ) { if ( 'wc_last_active' === $meta_key ) { self::update_registered_customer( $user_id ); } }