WooCommerce Code Reference

WC_Customer_Download_Data_Store_Interface

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
Get array of download ids by specified args.
get_downloads_for_customer()  : array
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

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