函数原型
remove_editor_styles(): bool
函数描述
Removes all visual editor stylesheets.
是否弃用
未弃用
函数参数
无
函数返回值
bool True on success, false if there were no stylesheets to remove.
函数位置
File: wp-includes/theme.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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |

