woocommerce_product_attribute_terms
Filter the product attribute term arguments used for search.
Usage
add_filter( 'woocommerce_product_attribute_terms', 'wp_kama_woocommerce_product_attribute_terms_filter' ); /** * Function for `woocommerce_product_attribute_terms` filter-hook. * * @param array $args The search arguments. * * @return array */ function wp_kama_woocommerce_product_attribute_terms_filter( $args ){ // filter... return $args; }
- $args(array)
- The search arguments.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
woocommerce_product_attribute_terms
woocommerce/includes/class-wc-ajax.php 1953
$terms = get_terms( apply_filters( 'woocommerce_product_attribute_terms', $args ) );