wp_navigation_should_create_fallback filter-hookWP 6.3.0

Filters whether or not a fallback should be created.

Usage

add_filter( 'wp_navigation_should_create_fallback', 'wp_kama_navigation_should_create_fallback_filter' );

/**
 * Function for `wp_navigation_should_create_fallback` filter-hook.
 * 
 * @param bool $create Whether to create a fallback navigation menu.
 *
 * @return bool
 */
function wp_kama_navigation_should_create_fallback_filter( $create ){

	// filter...
	return $create;
}
$create(true|false)
Whether to create a fallback navigation menu.
Default: true

Changelog

Since 6.3.0 Introduced.

Where the hook is called

WP_Navigation_Fallback::get_fallback()
wp_navigation_should_create_fallback
wp-includes/class-wp-navigation-fallback.php 79
$should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );

Where the hook is used in WordPress

Usage not found.