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. Use _disable_content_editor_for_navigation_post_type instead.

_enable_content_editor_for_navigation_post_type( WP_Post $post )

This callback enables content editor for wp_navigation type posts.


Description

We need to enable it back because we disable it to hide the content editor for wp_navigation type posts.

Top ↑

See also


Top ↑

Parameters

$post WP_Post Required
An instance of WP_Post class.

Top ↑

Source

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

function _enable_content_editor_for_navigation_post_type( $post ) {
	$post_type = get_post_type( $post );
	if ( 'wp_navigation' !== $post_type ) {
		return;
	}

	add_post_type_support( $post_type, 'editor' );
}


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.