Disables block editor for wp_navigation type posts so they can be managed via the UI.
Parameters
$value
boolrequired- Whether the CPT supports block editor or not.
$post_type
stringrequired- Post type.
Source
function _disable_block_editor_for_navigation_post_type( $value, $post_type ) {
if ( 'wp_navigation' === $post_type ) {
return false;
}
return $value;
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.