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.7.1

apply_filters('excerpt_allowed_blocks') is found 1 times:

  • /wp-includes/blocks.php line 1988
    	 * @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: