Filters the value of the result of the block template check.
$has_template, $template_name
Sortie :
@param boolean $has_template value to be filtered. @param string $template_name The name of the template.
// Modifier la valeur avec le filtre 'woocommerce_has_block_template'
add_filter('woocommerce_has_block_template', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($has_template) {
// Modifier la valeur
return $has_template;
}
Chargement des actualités...