block_core_navigation_render_inner_blocks
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
block_core_navigation_render_inner_blocks
wp-includes/blocks/navigation.php 327
$inner_blocks = apply_filters( 'block_core_navigation_render_inner_blocks', $inner_blocks );