Filter hook 'block_core_navigation_render_fallback'

in WP Core File wp-includes/blocks/navigation.php at line 1109

Description

Filters the fallback experience for the Navigation block. 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.

Occurrences

Filename Line Number
wp-includes/blocks/navigation.php 1109

Parameters

Type Name Description
array[] $fallback_blocks default fallback blocks provided by the default block mechanic.

PHP Doc

/**
	 * Filters the fallback experience for the Navigation block.
	 *
	 * 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.
	 *
	 * @since 5.9.0
	 *
	 * @param array[] $fallback_blocks default fallback blocks provided by the default block mechanic.
	 */