woocommerce_has_block_template

FILTER woocommerce\includes\class-wc-template-loader.php (ligne 142) github
Filters the value of the result of the block template check.

Paramètres

Entrée :
$has_template, $template_name
Sortie :
@param boolean $has_template value to be filtered.
@param string $template_name The name of the template.

Utilisation

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

Actualités

Chargement des actualités...