Check if a product supports a given feature. Product classes should override this to declare support (or lack of support) for a feature.
in_array( $feature, $this->supports, true
Sortie :
@param string $feature string The name of a feature to test support for. @return bool True if the product supports the feature, false otherwise.
// Modifier la valeur avec le filtre 'woocommerce_product_supports'
add_filter('woocommerce_product_supports', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(in_array( $feature) {
// Modifier la valeur
return in_array( $feature;
}
Chargement des actualités...