
什么是WordPress版本控制及最佳解决方案
remove_editor_styles ( No parameters )
remove_editor_styles: 这个函数用来删除WordPress中的编辑器样式。编辑器样式是用来定制WordPress中编辑器的外观的: 这个函数不需要参数。
移除所有可视化编辑器的样式表。
function remove_editor_styles() { if ( ! current_theme_supports( 'editor-style' ) ) { return false; } _remove_theme_support( 'editor-style' ); if ( is_admin() ) { $GLOBALS['editor_styles'] = array(); } return true; }