#9: teeny_mce_buttons

The teeny_mce_buttons filter allows you to add or remove buttons from the teeny mce buttons row used in Press This.

It is evaluated in the _WP_Editors::editor_settings() method in the wp-includes/class-wp-editor.phpv file. The _WP_Editors class is publicly instantiated via wp_editor().

Please note: Adding a button via teeny_mce_buttons will only register the button. In order to implement functionality for it, take a look at the teeny_mce_plugins filter in the same file.


The following example registers a new button in the teeny mce buttons row.

Have a suggested improvement? You can fork the Gist and comment back with the link. If all is agreeable, I’ll merge in your changes. Crowd-sourced documentation FTW!

One thought on “#9: teeny_mce_buttons

  1. Week 1 Recap: Filters 1-12 – Filters of the Day

Leave a Reply

Your email address will not be published. Required fields are marked *