woocommerce_placeholder_img_src
Использование
add_filter( 'woocommerce_placeholder_img_src', 'wp_kama_woocommerce_placeholder_img_src_filter' ); /** * Function for `woocommerce_placeholder_img_src` filter-hook. * * @param $src * * @return */ function wp_kama_woocommerce_placeholder_img_src_filter( $src ){ // filter... return $src; }
- $src
- -
Где вызывается хук
woocommerce_placeholder_img_src
woocommerce/includes/wc-product-functions.php 307
return apply_filters( 'woocommerce_placeholder_img_src', $src );