
如何使用代码和插件创建WordPress活动事件
_disable_block_editor_for_navigation_post_type ( $value, $post_type )
_disable_block_editor_for_navigation_post_type: 这个函数用于禁用导航文章类型的区块编辑器: 这是为了保持对尚未过渡到使用区块编辑器的旧WordPress主题的向后兼容性。
禁用wp_navigation类型文章的区块编辑器,以便可以通过用户界面管理它们。
function _disable_block_editor_for_navigation_post_type( $value, $post_type ) { if ( 'wp_navigation' === $post_type ) { return false; } return $value; }