Title: WP_Navigation_Fallback::get_default_fallback_blocks
Published: August 8, 2023
Last modified: May 20, 2026

---

# WP_Navigation_Fallback::get_default_fallback_blocks(): string

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Gets the rendered markup for the default fallback blocks.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#return)󠁿

 string default blocks markup to use a the fallback.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#source)󠁿

    ```php
    private static function get_default_fallback_blocks() {
    	$registry = WP_Block_Type_Registry::get_instance();

    	// If `core/page-list` is not registered then use empty blocks.
    	return $registry->is_registered( 'core/page-list' ) ? '<!-- wp:page-list /-->' : '';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-navigation-fallback.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-navigation-fallback.php#L296)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-navigation-fallback.php#L296-L301)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Block_Type_Registry::get_instance()](https://developer.wordpress.org/reference/classes/wp_block_type_registry/get_instance/)`wp-includes/class-wp-block-type-registry.php` |

Utility method to retrieve the main instance of the class.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_navigation_fallback/get_default_fallback_blocks/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.3.0](https://developer.wordpress.org/reference/since/6.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_navigation_fallback%2Fget_default_fallback_blocks%2F)
before being able to contribute a note or feedback.