woocommerce_product_category_metabox_search_threshold

FILTER woocommerce\includes\admin\meta-boxes\class-wc-meta-box-product-categories.php (ligne 48) github
Filters the category metabox search threshold, for when to render the typeahead field.

Paramètres

Entrée :
5
Sortie :
@param number $threshold The default threshold.
@returns number The threshold that will be used.

Utilisation

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

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

Actualités

Chargement des actualités...