Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the `innerBlocks` of these wrappers.
$allowed_wrapper_blocks
Sortie :
@param string[] $allowed_wrapper_blocks The list of names of allowed wrapper blocks.
// Modifier la valeur avec le filtre 'excerpt_allowed_wrapper_blocks'
add_filter('excerpt_allowed_wrapper_blocks', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($allowed_wrapper_blocks) {
// Modifier la valeur
return $allowed_wrapper_blocks;
}
Chargement des actualités...