woocommerce_loop_product_link
Usage
add_filter( 'woocommerce_loop_product_link', 'wp_kama_woocommerce_loop_product_link_filter', 10, 2 ); /** * Function for `woocommerce_loop_product_link` filter-hook. * * @param $the_permalink * @param $product * * @return */ function wp_kama_woocommerce_loop_product_link_filter( $the_permalink, $product ){ // filter... return $the_permalink; }
- $the_permalink
- -
- $product
- -
Where the hook is called
woocommerce_loop_product_link
woocommerce/includes/wc-template-functions.php 1220
$link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product );