remove_editor_styles

Removes all visual editor stylesheets.

Description

remove_editor_styles(); 

Usage

  1. if ( !function_exists( 'remove_editor_styles' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = remove_editor_styles(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/theme.php  
  1. function remove_editor_styles() { 
  2. if ( ! current_theme_supports( 'editor-style' ) ) 
  3. return false; 
  4. _remove_theme_support( 'editor-style' ); 
  5. if ( is_admin() ) 
  6. $GLOBALS['editor_styles'] = array(); 
  7. return true;