WordPress at Your Fingertips
function is not described

WC_Customer_Download_Data_Store::delete_by_id() public WC 1.0

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

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Customer_Download_Data_Store = new WC_Customer_Download_Data_Store();
$WC_Customer_Download_Data_Store->delete_by_id( $id );
$id(int) (required)
permission_id of the download to be deleted.

Code of WC_Customer_Download_Data_Store::delete_by_id() WC 5.6.0

public function delete_by_id( $id ) {
	global $wpdb;
	$wpdb->query(
		$wpdb->prepare(
			"DELETE FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions
			WHERE permission_id = %d",
			$id
		)
	);
}