woocommerce_reset_variations_link
Usage
add_filter( 'woocommerce_reset_variations_link', 'wp_kama_woocommerce_reset_variations_link_filter' ); /** * Function for `woocommerce_reset_variations_link` filter-hook. * * @param $html * * @return */ function wp_kama_woocommerce_reset_variations_link_filter( $html ){ // filter... return $html; }
- $html
- -
Where the hook is called
woocommerce_reset_variations_link
woocommerce/templates/single-product/add-to-cart/variable.php 48
echo end( $attribute_keys ) === $attribute_name ? wp_kses_post( apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' ) ) : '';