remove_editor_styles()
Removes all visual editor stylesheets.
No Hooks.
Returns
true|false. True on success, false if there were no stylesheets to remove.
Usage
remove_editor_styles();
Notes
- Global. Array.
$editor_styles
Changelog
| Since 3.1.0 | Introduced. |
remove_editor_styles() remove editor styles code WP 6.9.1
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;
}