хук-фильтр
since 2.7.0
teeny_mce_plugins
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'teeny_mce_plugins', array $plugins, string $editor_id )
Описание
Фильтрует список плагинов teenyMCE.
Фильтруемое значение
Массив плагинов teenyMCE.
Параметры
$plugins
array
обязательный
Массив плагинов teenyMCE.
$editor_id
string
обязательный
Уникальный идентификатор редактора, например 'content'.
Исходный код
wp-includes/class-wp-editor.php:386
$plugins = apply_filters(
'teeny_mce_plugins',
array(
'colorpicker',
'lists',
'fullscreen',
'image',
'wordpress',
'wpeditimage',
'wplink',
),
$editor_id
);
История изменений
| Версия | Описание |
|---|---|
| 3.3.0 | The $editor_id parameter was added. |
| 2.7.0 | Introduced. |

