W3cubDocs

/WordPress

apply_filters( ‘wp_navigation_should_create_fallback’, bool $create )

Filters whether or not a fallback should be created.

Parameters

$createbool
Whether to create a fallback navigation menu. Default true.

Source

$should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );

Changelog

Version Description
6.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_navigation_should_create_fallback