woocommerce_order_is_download_permitted хук-фильтр . WC 1.0
Checks if product download is permitted.
Использование
add_filter( 'woocommerce_order_is_download_permitted', 'filter_function_name_6670', 10, 2 ); function filter_function_name_6670( $condition, $that ){ // filter... return $condition; }
- $condition
- -
- $that
- -
Где вызывается хук
woocommerce_order_is_download_permitted
woocommerce/includes/class-wc-order.php 1397
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 );