On this page
remove_editor_styles(): bool
Removes all visual editor stylesheets.
Return
bool True on success, false if there were no stylesheets to remove.
Source
File: wp-includes/theme.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| _remove_theme_support() wp-includes/theme.php | Do not use. Removes theme support internally without knowledge of those not used by themes directly. |
| current_theme_supports() wp-includes/theme.php | Checks a theme’s support for a given feature. |
| is_admin() wp-includes/load.php | Determines whether the current request is for an administrative interface page. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_editor_styles