WordPress at Your Fingertips
function is not described

WC_Customer_Download_Data_Store::delete_by_download_id() public WC 1.0

Method to delete a download permission from the database by download ID.

{} It's a method of the class: WC_Customer_Download_Data_Store{}

No Hooks.


null. Nothing.


$WC_Customer_Download_Data_Store = new WC_Customer_Download_Data_Store();
$WC_Customer_Download_Data_Store->delete_by_download_id( $id );
$id(int) (required)
download_id of the downloads that will be deleted.

Code of WC_Customer_Download_Data_Store::delete_by_download_id() WC 5.6.0

public function delete_by_download_id( $id ) {
	global $wpdb;
			"DELETE FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions
			WHERE download_id = %s",