wp_navigation_should_create_fallback

wp_navigation_should_create_fallback

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_navigation_should_create_fallback') is found 1 times:

  • /wp-includes/class-wp-navigation-fallback.php line 79
    		 * @since 6.3.0
    		 *
    		 * @param bool $create Whether to create a fallback navigation menu. Default true.
    		 */
    		$should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );
    
    		$fallback = static::get_most_recently_published_navigation();
    
    		if ( $fallback || ! $should_create_fallback ) {
    			return $fallback;
    		}