woocommerce_order_is_download_permitted, $this->has_status( OrderStatus::COMPLETED
woocommerce_order_is_download_permitted, $this->has_status( OrderStatus::COMPLETED
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_order_is_download_permitted, $this->has_status( OrderStatus::COMPLETED') is found 1 times:
- /includes/class-wc-order.php line 1741
* @param bool $is_download_permitted Is the order downloadable. * @param WC_Order $this Order object. * @since 2.7.0 */ return apply_filters( 'woocommerce_order_is_download_permitted', $this->has_status( OrderStatus::COMPLETED ) || ( 'yes' === get_option( 'woocommerce_downloads_grant_access_after_payment' ) && $this->has_status( OrderStatus::PROCESSING ) ), $this ); } /** * Checks if an order needs display the shipping address, based on shipping method. * * @return bool