woocommerce_resize_images хук-фильтр . WC 1.0
Check if we should maybe generate a new image size if not already there.
Использование
add_filter( 'woocommerce_resize_images', 'filter_function_name_164' ); function filter_function_name_164( $image ){ // filter... return $image; }
- $image(массив)
- Properties of the image.
Где вызывается хук
woocommerce_resize_images
woocommerce/includes/class-wc-regenerate-images.php 202
if ( ! apply_filters( 'woocommerce_resize_images', true ) ) {