woocommerce_loop_product_link хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_loop_product_link', 'filter_function_name_881', 10, 2 ); function filter_function_name_881( $the_permalink, $product ){ // filter... return $the_permalink; }
- $the_permalink
- -
- $product
- -
Где вызывается хук
woocommerce_loop_product_link
woocommerce/includes/wc-template-functions.php 1192
$link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product );