WooCommerce Code Reference

WC_Customer_Download_Data_Store_Interface

WC Customer Download Data Store Interface.

Tags
version
3.0.0

Table of Contents

delete_by_download_id()  : mixed
Method to delete a download permission from the database by download ID.
delete_by_id()  : mixed
Method to delete a download permission from the database by ID.
delete_by_order_id()  : mixed
Method to delete a download permission from the database by order ID.
get_downloads()  : array<string|int, mixed>
Get array of download ids by specified args.
get_downloads_for_customer()  : array<string|int, mixed>
Get a customers downloads.
update_download_id()  : mixed
Update download ids if the hash changes.
update_user_by_order_id()  : mixed
Update user prop for downloads based on order id.

Methods

get_downloads()

Get array of download ids by specified args.

public get_downloads([array<string|int, mixed> $args = array() ]) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed> = array()

Arguments.

Return values
array<string|int, mixed>of WC_Customer_Download

update_user_by_order_id()

Update user prop for downloads based on order id.

public update_user_by_order_id(int $order_id, int $customer_id, string $email) : mixed
Parameters
$order_id : int

Order ID.

$customer_id : int

Customer ID.

$email : string

Email Address.

Return values
mixed