Filters the list of allowed block namespaces. This hook defines which block namespaces should have block name and attribute `data-` attributes appended on render.
array(
Sortie :
@param array $allowed_namespaces List of namespaces.
// 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(;
}
Chargement des actualités...