remove_editor_styles()WP 3.1.0

Removes all visual editor stylesheets.

Хуков нет.

Возвращает

true|false. True on success, false if there were no stylesheets to remove.

Использование

remove_editor_styles();

Заметки

  • Global. Массив. $editor_styles

Список изменений

С версии 3.1.0 Введена.

Код remove_editor_styles() WP 6.4.3

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