WordPress at Your Fingertips
function is not described

WC_Order_Data_Store_CPT::set_download_permissions_granted() public WC 1.0

Stores information about whether permissions were generated yet.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Data_Store_CPT = new WC_Order_Data_Store_CPT();
$WC_Order_Data_Store_CPT->set_download_permissions_granted( $order, $set );
$order(WC_Order|int) (required)
Order ID or order object.
$set(true|false) (required)
True or false.

Code of WC_Order_Data_Store_CPT::set_download_permissions_granted() WC 5.8.0

public function set_download_permissions_granted( $order, $set ) {
	$order_id = WC_Order_Factory::get_order_id( $order );
	update_post_meta( $order_id, '_download_permissions_granted', wc_bool_to_string( $set ) );
}