wp_enqueue_editor()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
wp_enqueue_editor()
Описание
Редактор можно инициализировать по мере необходимости после загрузки страницы.
Параметры инициализации см. в wp.editor.initialize() в wp-admin/js/editor.js.
Оригинал (английский)
The editor can be initialized when needed after page load.
See wp.editor.initialize() in wp-admin/js/editor.js for initialization options.
Исходный код
wp-includes/general-template.php:4008
function wp_enqueue_editor() {
if ( ! class_exists( '_WP_Editors', false ) ) {
require ABSPATH . WPINC . '/class-wp-editor.php';
}
_WP_Editors::enqueue_default_editor();
}
История изменений
| Версия | Описание |
|---|---|
| 4.8.0 | Introduced. |

