apply_filters( 'block_core_navigation_render_fallback', array[] $fallback_blocks )
- Since
- 5.9.0
Filters the fallback experience for the Navigation block.
Description
Returning a falsey value will opt out of the fallback and cause the block not to render.
To customise the blocks provided return an array of blocks - these should be valid children of the core/navigation block.
Compatibility
- WordPress
- since 5.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$fallback_blocksarray[]- default fallback blocks provided by the default block mechanic.
Where this hook fires · 1
wp-includes/blocks/navigation.php:1523block_core_navigation_get_fallback_blocks()
Source code
* children of the `core/navigation` block. * * @since 5.9.0 * * @param array[] $fallback_blocks default fallback blocks provided by the default block mechanic. */ return apply_filters( 'block_core_navigation_render_fallback', $fallback_blocks );} /** * Iterate through all inner blocks recursively and get navigation link block's post IDs. * * @since 6.0.0Changelog
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.