Alert: 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.

_disable_block_editor_for_navigation_post_type( bool $value, string $post_type ): bool

Disables block editor for wp_navigation type posts so they can be managed via the UI.


Parameters

$value bool Required
Whether the CPT supports block editor or not.
$post_type string Required
Post type.

Top ↑

Return

bool Whether the block editor should be disabled or not.


Top ↑

Source

File: wp-admin/includes/post.php. View all references

function _disable_block_editor_for_navigation_post_type( $value, $post_type ) {
	if ( 'wp_navigation' === $post_type ) {
		return false;
	}

	return $value;
}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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