woocommerce_get_item_downloads
Использование
add_filter( 'woocommerce_get_item_downloads', 'wp_kama_woocommerce_get_item_downloads_filter', 10, 3 ); /** * Function for `woocommerce_get_item_downloads` filter-hook. * * @param $files * @param $that * @param $order * * @return */ function wp_kama_woocommerce_get_item_downloads_filter( $files, $that, $order ){ // filter... return $files; }
- $files
- -
- $that
- -
- $order
- -
Где вызывается хук
woocommerce_get_item_downloads
woocommerce/includes/class-wc-order-item-product.php 423
return apply_filters( 'woocommerce_get_item_downloads', $files, $this, $order );