Get related products based on product category and tags.
true
Sortie :
@param int $product_id Product ID. @param int $limit Limit of results. @param array $exclude_ids Exclude IDs from the results. @param array $related_by Related by category and tags boolean flags. @return array
// Modifier la valeur avec le filtre 'woocommerce_product_related_posts_shuffle'
add_filter('woocommerce_product_related_posts_shuffle', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...