remove_editor_styles()

最后更新于:2021-11-27 21:41:57

remove_editor_styles()

Removes all visual editor stylesheets.

响应

(bool) True on success, false if there were no stylesheets to remove.

源文件

文件: gc-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;
}