woocommerce_product_attribute_terms filter-hookWC 3.4.0

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

WC_AJAX::json_search_taxonomy_terms()
woocommerce_product_attribute_terms
woocommerce/includes/class-wc-ajax.php 1953
$terms = get_terms( apply_filters( 'woocommerce_product_attribute_terms', $args ) );

Where the hook is used in WooCommerce

Usage not found.