woocommerce_attribute
Usage
add_filter( 'woocommerce_attribute', 'wp_kama_woocommerce_attribute_filter', 10, 3 ); /** * Function for `woocommerce_attribute` filter-hook. * * @param $wpautop * @param $attribute * @param $values * * @return */ function wp_kama_woocommerce_attribute_filter( $wpautop, $attribute, $values ){ // filter... return $wpautop; }
- $wpautop
- -
- $attribute
- -
- $values
- -
Where the hook is called
woocommerce/includes/wc-template-functions.php 3628
'value' => apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ),