您可以在tiny\\u mce\\u before\\u init过滤器中更改tinyMCE编辑器的许多内容。
http://codex.wordpress.org/TinyMCE_Custom_Buttons
以下内容将限制您的blockformats为p、h3、h4和blockquote
function wpa_45815($arr){
$arr[\'theme_advanced_blockformats\'] = \'p,h3,h4,blockquote\';
return $arr;
}
add_filter(\'tiny_mce_before_init\', \'wpa_45815\');
EDIT for WordPress 3.9 see linkfunction wpa_45815($arr){
$arr[\'block_formats\'] = \'Paragraph=p;Heading 3=h3;Heading 4=h4\';
return $arr;
}
add_filter(\'tiny_mce_before_init\', \'wpa_45815\');