apply_filters( 'mce_buttons_2', array $mce_buttons_2 , string $editor_id )
Filters the second-row list of TinyMCE buttons (Visual tab).
Parameters Parameters
- $mce_buttons_2
-
(array) Second-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 Source
Changelog Changelog
Version | Description |
---|---|
3.3.0 | The $editor_id parameter was added. |
2.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example Migrated from Codex:
The example below will reveal the hidden “Styles” dropdown in the advanced toolbar.
Example Migrated from Codex:
The example below will remove the text color selector from the advanced toolbar.
Or, if you want to remove more buttons at the same time: