woocommerce_ajax_revoke_access_to_product_download

woocommerce_ajax_revoke_access_to_product_download

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_ajax_revoke_access_to_product_download') is found 1 times:

  • /includes/class-wc-ajax.php line 884
    		$permission_id = absint( $_POST['permission_id'] );
    		$data_store    = WC_Data_Store::load( 'customer-download' );
    		$data_store->delete_by_id( $permission_id );
    
    		do_action( 'woocommerce_ajax_revoke_access_to_product_download', $download_id, $product_id, $order_id, $permission_id );
    
    		wp_die();
    	}
    
    	/**
    	 * Grant download permissions via ajax function.