teeny_mce_buttons WordPress Filter Hook
The teeny_mce_buttons hook allows you to add custom buttons to the WordPress TinyMCE editor. This is useful for adding custom functionality to the editor, or for overriding default buttons.
apply_filters( 'teeny_mce_buttons', array $mce_buttons , string $editor_id ) #
Filters the list of teenyMCE buttons (Text tab).
Parameters
- $mce_buttons
(array)An array of teenyMCE buttons.
- $editor_id
(string)Unique editor identifier, e.g. 'content'.
Source
Changelog
Version | Description |
---|---|
3.3.0 | The $editor_id parameter was added. |
2.7.0 | Introduced. |