只需将此代码添加到functions.php
加载页面时,始终会立即启用“查看”-->“显示块”
if( !function_exists(\'custom_settings_tinymce\') ){
function custom_settings_tinymce($init) {
$init[\'visualblocks_default_state\'] = true;
return $init;
}
add_filter(\'tiny_mce_before_init\', \'custom_settings_tinymce\' );
}