mce_buttons_4 WordPress Filter Hook
This hook is used to add extra buttons to the WordPress editor. By default, WordPress only includes a handful of buttons in the editor, but this hook allows you to add your own custom buttons. This can be useful if you want to add extra functionality to the editor, or if you want to change the way the editor works.
apply_filters( 'mce_buttons_4', array $mce_buttons_4 , string $editor_id ) #
Filters the fourth-row list of TinyMCE buttons (Visual tab).
Parameters
- $mce_buttons_4
(array)Fourth-row list of buttons.
- $editor_id
(string)Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.
Source
Changelog
Version | Description |
---|---|
3.3.0 | The $editor_id parameter was added. |
2.5.0 | Introduced. |