woocommerce_json_search_found_product_attribute_terms

FILTER woocommerce\includes\class-wc-ajax.php (ligne 2003) github
Filter the product attribute terms search results.

Paramètres

Entrée :
$terms, $taxonomy
Sortie :
@param array  $terms    The list of matched terms.
@param string $taxonomy The terms taxonomy.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_json_search_found_product_attribute_terms'
add_filter('woocommerce_json_search_found_product_attribute_terms', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($terms) {
    // Modifier la valeur
    return $terms;
}

Actualités

Chargement des actualités...