woocommerce_product_related_posts_shuffle

FILTER woocommerce\includes\wc-product-functions.php (ligne 1151) github
Get related products based on product category and tags.

Paramètres

Entrée :
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

Utilisation

// 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;
}

Actualités

Chargement des actualités...