WC_Order_Data_Store_CPT::get_download_permissions_granted()
Gets information about whether permissions were generated yet.
Method of the class: WC_Order_Data_Store_CPT{}
No Hooks.
Return
true|false
.
Usage
$WC_Order_Data_Store_CPT = new WC_Order_Data_Store_CPT(); $WC_Order_Data_Store_CPT->get_download_permissions_granted( $order );
- $order(WC_Order|int) (required)
- Order ID or order object.
WC_Order_Data_Store_CPT::get_download_permissions_granted() WC Order Data Store CPT::get download permissions granted code WC 9.4.2
public function get_download_permissions_granted( $order ) { $order_id = WC_Order_Factory::get_order_id( $order ); return wc_string_to_bool( get_post_meta( $order_id, '_download_permissions_granted', true ) ); }