删除所有可视编辑器样式表。
原型
remove_editor_styles()
返回值
(bool)
成功时为true,如果没有要删除的样式表,则为false。
源文件
路径:wp-includes/theme.php
<?php
...
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;
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/remove_editor_styles/