Filters the list of allowed Block Names This hook defines which block names 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_block'
add_filter('__experimental_woocommerce_blocks_add_data_attributes_to_block', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array() {
// Modifier la valeur
return array(;
}
Chargement des actualités...