wp_navigation_should_create_fallback
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_should_create_fallback
wp-includes/class-wp-navigation-fallback.php 78
$should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );