如何将操作应用于admin中的一个特定页面?
我已经在一个页面(“主页”)中添加了大量所见即所得编辑器,现在我不需要主编辑器。当然,下面的函数将从所有页面中删除编辑器:
function remove_editor_from_home_page() {
remove_post_type_support( \'page\', \'editor\' );
}
add_action( \'init\', \'remove_editor_from_home_page\' );
如何通过名称“Home”或page\\u id在admin中定位主页?另一个WPSE答案不适合我:Target a certain page within wordpress backend