excerpt_allowed_blocks

excerpt_allowed_blocks

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('excerpt_allowed_blocks') is found 1 times:

  • /wp-includes/blocks.php line 2139
    2135
    2136
    2137
    2138
    2139
    2140
    2141
    2142
    2143
    2144
    2145
    * @since 5.0.0
     *
     * @param string[] $allowed_blocks The list of names of allowed blocks.
     */
    $allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks );
    $blocks         = parse_blocks( $content );
    $output         = '';
     
    foreach ( $blocks as $block ) {
        if ( in_array( $block['blockName'], $allowed_blocks, true ) ) {
            if ( ! empty( $block['innerBlocks'] ) ) {

See this hook used in plugins: