创建插件以添加"帖子"在wordpress网站
$args = array(
'labels' => $labels,
'hierarchical' => true,
'description' => 'Music reviews filterable by genre',
'supports' => array('title', 'editor', 'thumbnail', 'revisions'),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-quote',
'show_in_nav_menus' => true,
'publicly_queryable' => false,
'exclude_from_search' => false,
'has_archive' => false,
'query_var' => true,
'can_export' => false,
'rewrite' => true,
'capability_type' => 'post',
'user_can_richedit' => '__return_false',
);
register_post_type('music_review', $args);
那么,如何在插件页面禁用可视化编辑器并禁用添加媒体按钮?