I want to unregister a custom tinymce plugin in one of my child themes. The custom tinymce plugin uses basically:
http://codex.wordpress.org/Plugin_API/Filter_Reference/mce_external_plugins
excerpt:
add_filter( "mce_external_plugins", "foo_add_buttons" );
add_filter( 'mce_buttons', 'foo_register_buttons' );
What is the best way to remove this such that performance is the best? The two options I came up with are:
- remove_filter("mce_external_plugins"); & remove_filter( 'mce_buttons', 'foo_register_buttons' );?
- add_filter('tiny_mce_before_init', 'disable_mce_buttons'); and simply remove the buttons that the parent theme adds?