禁用可视编辑器和媒体按钮

时间:2014-12-15 23:52:45

标签: wordpress wordpress-plugin

创建插件以添加"帖子"在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);

那么,如何在插件页面禁用可视化编辑器并禁用添加媒体按钮?

0 个答案:

没有答案