WC_Order::get_download_permissions_granted()
Gets information about whether permissions were generated yet.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
true|false
. True if permissions were generated, false otherwise.
Использование
$WC_Order = new WC_Order(); $WC_Order->get_download_permissions_granted( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Код WC_Order::get_download_permissions_granted() WC Order::get download permissions granted WC 9.3.3
public function get_download_permissions_granted( string $context = 'view' ) { return wc_string_to_bool( $this->get_prop( 'download_permissions_granted', $context ) ); }