Core Function
View Source on Trac ↗ _disable_block_editor_for_navigation_post_type()
_disable_block_editor_for_navigation_post_type( mixed $value, mixed $post_type ) Disables block editor for wp_navigation type posts so they can be managed via the UI.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $value bool | Whether the CPT supports block editor or not. Required |
| $post_type string | Post type. Required |
Return Value
(bool)
Whether the block editor should be disabled or not.
Function Information
Since Version
5.9.0
Source File
wp-admin/includes/post.php
Advertisement