функция
since 3.1.0
remove_editor_styles()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
remove_editor_styles(): bool
Описание
Удаляет все таблицы стилей визуального редактора.
Возвращаемое значение
bool
Исходный код
wp-includes/theme.php:2209
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;
}
История изменений
| Версия | Описание |
|---|---|
| 3.1.0 | Introduced. |

