wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



remove_editor_styles › WordPress Function

Da3.1.0
Deprecaton/a
remove_editor_styles ( Nessun parametro )
Ritorna:
  • (bool) True on success, false if there were no stylesheets to remove.
Definito a:
Codex:

Removes all visual editor stylesheets.



Sorgenti

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