excerpt_allowed_wrapper_blocks

FILTER wp-includes\blocks.php (ligne 2167) github
Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the `innerBlocks` of these wrappers.

Paramètres

Entrée :
$allowed_wrapper_blocks
Sortie :
@param string[] $allowed_wrapper_blocks The list of names of allowed wrapper blocks.

Utilisation

// 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;
}

Actualités

Chargement des actualités...