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

