__experimental_woocommerce_blocks_add_data_attributes_to_namespace

FILTER woocommerce\src\Blocks\BlockTypesController.php (ligne 257) github
Filters the list of allowed block namespaces. This hook defines which block namespaces should have block name and attribute `data-` attributes appended on render.

Paramètres

Entrée :
array(
Sortie :
@param array $allowed_namespaces List of namespaces.

Utilisation

// Modifier la valeur avec le filtre '__experimental_woocommerce_blocks_add_data_attributes_to_namespace'
add_filter('__experimental_woocommerce_blocks_add_data_attributes_to_namespace', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(array() {
    // Modifier la valeur
    return array(;
}

Actualités

Chargement des actualités...