Filters the theme block patterns.
$block_patterns
Sortie :
@param array $block_patterns List of block patterns by name.
// Modifier la valeur avec le filtre 'twentytwentytwo_block_patterns'
add_filter('twentytwentytwo_block_patterns', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($block_patterns) {
// Modifier la valeur
return $block_patterns;
}
Chargement des actualités...