woocommerce_order_is_download_permitted

woocommerce_order_is_download_permitted

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_order_is_download_permitted') is found 1 times:

  • /includes/class-wc-order.php line 1623
    	 *
    	 * @return bool
    	 */
    	public function is_download_permitted() {
    		return apply_filters( 'woocommerce_order_is_download_permitted', $this->has_status( 'completed' ) || ( 'yes' === get_option( 'woocommerce_downloads_grant_access_after_payment' ) && $this->has_status( 'processing' ) ), $this );
    	}
    
    	/**
    	 * Checks if an order needs display the shipping address, based on shipping method.
    	 *
    	 * @return bool