WC_Customer_Download_Log_Data_Store::delete_by_permission_id( int $id )
Method to delete download logs for a given permission ID.
Description Description
Parameters Parameters
- $id
-
(Required) download_id of the downloads that will be deleted.
Source Source
File: includes/data-stores/class-wc-customer-download-log-data-store.php
public function delete_by_permission_id( $id ) { global $wpdb; $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions WHERE permission_id = %d", $id ) ); }
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |