Automattic\WooCommerce\Internal\PushNotifications\Services

UserDataCleanupService::handle_delete_user │ public │ WC 11.2.0

Handles the delete_user hook.

Method of the class: UserDataCleanupService{}

No Hooks.

Returns

void. Nothing (null).

Usage

$UserDataCleanupService = new UserDataCleanupService();
$UserDataCleanupService->handle_delete_user( $user_id ): void;
$user_id(int) (required)
The ID of the user being deleted.

Changelog

Since 11.2.0 Introduced.

UserDataCleanupService::handle_delete_user() code WC 11.3.0

public function handle_delete_user( int $user_id ): void {
	$this->delete_data_for_user( $user_id );
}