WP_Navigation_Fallback::get_default_fallback_blocks(): string

In this article

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

Gets the rendered markup for the default fallback blocks.

Return

string default blocks markup to use a the fallback.

Source

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 /-->' : '';
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.