block_core_navigation_render_inner_blocks filter-hookWP 6.1.0

Filter navigation block $inner_blocks. Allows modification of a navigation block menu items.

Usage

add_filter( 'block_core_navigation_render_inner_blocks', 'wp_kama_block_core_navigation_render_inner_blocks_filter' );

/**
 * Function for `block_core_navigation_render_inner_blocks` filter-hook.
 * 
 * @param \WP_Block_List $inner_blocks 
 *
 * @return \WP_Block_List
 */
function wp_kama_block_core_navigation_render_inner_blocks_filter( $inner_blocks ){

	// filter...
	return $inner_blocks;
}
$inner_blocks(\WP_Block_List)
-

Changelog

Since 6.1.0 Introduced.

Where the hook is called

WP_Navigation_Block_Renderer::get_inner_blocks()
block_core_navigation_render_inner_blocks
wp-includes/blocks/navigation.php 327
$inner_blocks = apply_filters( 'block_core_navigation_render_inner_blocks', $inner_blocks );

Where the hook is used in WordPress

Usage not found.