teeny_mce_buttons хук-фильтр . WP 2.7.0
Filters the list of teenyMCE buttons (Text tab).
Использование
add_filter( 'teeny_mce_buttons', 'filter_function_name_9284', 10, 2 ); function filter_function_name_9284( $mce_buttons, $editor_id ){ // filter... return $mce_buttons; }
- $mce_buttons(массив)
- An array of teenyMCE buttons.
- $editor_id(строка)
- Unique editor identifier, e.g. 'content'.
Список изменений
С версии 2.7.0 | Введена. |
С версии 3.3.0 | The $editor_id parameter was added. |
Где вызывается хук
teeny_mce_buttons
wp-includes/class-wp-editor.php 627
$mce_buttons = apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id );