Automattic\WooCommerce\Internal\Admin\Schedulers

CustomersScheduler::delete_user()public staticWC 1.0

Delete the customer data for a single user.

Method of the class: CustomersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = CustomersScheduler::delete_user( $user_id );
$user_id(int) (required)
User ID.

CustomersScheduler::delete_user() code WC 7.3.0

public static function delete_user( $user_id ) {
	CustomersDataStore::delete_customer_by_user_id( $user_id );
}