WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've always used the plugin TinyMCE Advance that lets me drag and drop which buttons I want to show in the Editor. Now I'm trying to set those using my functions.php instead. That way I never have to worry about it. Here's what I've done, but I'm not seeing the results:

function myformatTinyMCE($in){

 return $in;
add_filter('tiny_mce_before_init', 'myformatTinyMCE');

Edit: It's working in WP Pages and Posts, but I'm using the Advanced Custom Fields plugin, and on WYSIWYGs created by that plugin it does not work. Is there a way to force it to work with that as well?

share|improve this question
Maybe you have to hook with a higher priority? Just try add_filter('tiny_mce_before_init', 'myformatTinyMCE', 100); or higher, or have a look at the source of ACF. – tfrommen Jan 31 '14 at 19:50
I hadn't known about that priority setting so that's cool unfortunately that didn't work. I will have to check in with ACF forums when they open back up. – paper_robots Jan 31 '14 at 20:36
I just had a short glimpse at ACF. They seem to use the teenyMCE, so just try to hook your function to 'teeny_mce_before_init' as well. – tfrommen Jan 31 '14 at 20:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.