Skip to content

Instantly share code, notes, and snippets.

View jonnymaceachern's full-sized avatar

Jonny jonnymaceachern

  • Developer @ Media Mechanics
  • Halifax, NS
  • 14:30 (UTC -03:00)
View GitHub Profile
@jonnymaceachern
jonnymaceachern / editor.php
Created February 25, 2020 17:07 — forked from justinwhall/gist:1997780
PHP: WordPress | tinyMCE editor style dropdown menu
<?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