Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_download_permissions_granted()publicWC 1.0

Get information about whether permissions are granted yet.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

true|false. Whether permissions are granted.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_download_permissions_granted( $order );
$order(\WC_Order) (required)
Order object.

OrdersTableDataStore::get_download_permissions_granted() code WC 7.1.0

public function get_download_permissions_granted( $order ) {
	$order = is_int( $order ) ? wc_get_order( $order ) : $order;
	return $order->get_download_permissions_granted();
}