WC_Order::get_download_permissions_granted
Gets information about whether permissions were generated yet.
Method of the class: WC_Order{}
No Hooks.
Returns
true|false. True if permissions were generated, false otherwise.
Usage
$WC_Order = new WC_Order(); $WC_Order->get_download_permissions_granted( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
WC_Order::get_download_permissions_granted() WC Order::get download permissions granted code WC 10.5.0
public function get_download_permissions_granted( string $context = 'view' ) {
return wc_string_to_bool( $this->get_prop( 'download_permissions_granted', $context ) );
}