Skip to content

Instantly share code, notes, and snippets.


Jonny MacEachern jonnymaceachern

View GitHub Profile
jonnymaceachern / editor.php
Created Feb 25, 2020 — forked from justinwhall/gist:1997780
PHP: WordPress | tinyMCE editor style dropdown menu
View editor.php
* Filter TinyMCE Buttons
* Here we are filtering the TinyMCE buttons and adding a button
* to it. In this case, we are looking to add a style select
* box (button) which is referenced as "styleselect". In this
* example we are looking to add the select box to the second
* row of the visual editor, as defined by the number 2 in the