WordPress开发者和主题制作者的搜索引擎



remove_editor_styles ›

Since3.1.0
已弃用n/a
remove_editor_styles ( 没有参数 )
返回:
  • (bool) True on success, false if there were no stylesheets to remove.
定义在:
文档:

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