Generates a title with attribute information for a variation. Products will get a title of the form "Name - Value, Value" or just "Name".
$should_include_attributes, $product
Sortie :
@param WC_Product $product Product object. @return string
// Modifier la valeur avec le filtre 'woocommerce_product_variation_title_include_attributes'
add_filter('woocommerce_product_variation_title_include_attributes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($should_include_attributes) {
// Modifier la valeur
return $should_include_attributes;
}
Chargement des actualités...