remove_editor_styles

函数


remove_editor_styles ( No parameters )
返回值
  • (bool) True on success, false if there were no stylesheets to remove.
定义位置
  • wp-includes/theme.php
    , line 2131
引入
3.1.0
弃用

Removes all visual editor stylesheets.

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;
}