Метод |
Описание |
|
create ( WC_Customer_Download &$download ) |
Create dowload permission for a user. |
|
delete ( WC_Customer_Download &$download, array $args = [] ) |
Method to delete a download permission from the database. |
|
delete_by_download_id ( integer $id ) |
Method to delete a download permission from the database by download ID. |
|
delete_by_id ( integer $id ) |
Method to delete a download permission from the database by ID. |
|
delete_by_order_id ( integer $id ) |
Method to delete a download permission from the database by order ID. |
|
get_downloads ( array $args = [] ) : array |
Get array of download ids by specified args. |
|
get_downloads_for_customer ( integer $customer_id ) : array |
Get a customers downloads. |
|
read ( &$download ) |
Method to read a download permission from the database. |
|
update ( WC_Customer_Download &$download ) |
Method to update a download in the database. |
|
update_download_id ( integer $product_id, string $old_id, string $new_id ) |
Update download ids if the hash changes. |
|
update_user_by_order_id ( integer $order_id, integer $customer_id, string $email ) |
Update user prop for downloads based on order id. |
|