tinymce(ビジュアルエディタ)に表示されるボタン類を消す
[WordPress] プラグインを使わずにビジュアルエディタへボタンを追加/削除したり、オリジナルの並びにしたりする方法 | memocarilog
http://memocarilog.info/wordpress/6374
こちらのサイトが詳しい
以下は太字とリンクぐらいしか貼れなくするコード
同時にビジュアルエディタのtextarea内で適用されるCSS editor-style.css を読み込ませる
//editor cssの読み込み
add_editor_style("editor-style.css");
//tinymceの表示ボタン変更
function tinymce_change_buttons($buttons) {
$buttons = array_diff($buttons, array('italic','strikethrough','bullist','numlist','blockquote','hr','alignleft','aligncenter','alignright','wp_more','spellchecker','fullscreen'));
return $buttons;
}
add_filter('mce_buttons', 'tinymce_change_buttons');
function tinymce_change_buttons_2($buttons) {
$buttons = array_diff($buttons, array('formatselect','underline','alignjustify','forecolor','pastetext','removeformat','charmap','outdent','indent', 'wp_help'));
return $buttons;
}
add_filter('mce_buttons_2', 'tinymce_change_buttons_2');