WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\Schedulers

CustomersScheduler::schedule_import_via_last_active() public WC 1.0

Schedule an import if the "last active" meta value was changed. Function expects to be hooked into the updated_user_meta action.

{} It's a method of the class: CustomersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = CustomersScheduler::schedule_import_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.

Code of CustomersScheduler::schedule_import_via_last_active() WC 6.1.1

public static function schedule_import_via_last_active( $meta_id, $user_id, $meta_key ) {
	if ( 'wc_last_active' === $meta_key ) {
		self::schedule_import( $user_id );
	}
}