Filters whether to override read permissions for unpublished products.
null, $product_id
Sortie :
@param bool $force_rendering Whether to override read permissions for unpublished products. `true` to force rendering the product page, `false` to block rendering, or `null` to use the default behavior. @param int $product_id Product ID. @return bool
// Modifier la valeur avec le filtre 'woocommerce_shortcode_product_page_force_rendering'
add_filter('woocommerce_shortcode_product_page_force_rendering', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...