WordPress filter hook · part of WordPress core
teeny_mce_buttons
A WordPress core filter that 45 plugins also fire themselves, running on 2.1M+ sites between them.
“Filter the list of teenyMCE buttons (Text tab).”
How to use teeny_mce_buttons
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'teeny_mce_buttons', function( $teeny_mce_buttons, $editor_id ) {
// Change $teeny_mce_buttons here.
return $teeny_mce_buttons;
}, 10, 2 );Argument names come from Advanced Custom Fields (ACF®)'s source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
45 plugins that fire teeny_mce_buttons
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields (ACF®)2+ million installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/fields/class-acf-field-wysiwyg.php:122 -
Secure Custom Fields100,000+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/fields/class-acf-field-wysiwyg.php:114 -
ACF Frontend Admin by DynamiApps8,000+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )main/frontend/fields/post/class-post-content.php:121 -
Mapster WP Maps3,000+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:122 -
WPScreens300+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:128 -
MapifyLite (by MapifyPro)200+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )lib/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:113 -
WP Related Posts and Products (WRI)100+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:143 -
Flexblocks80+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )inc/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
Dooodl50+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )includes/libs/advanced-custom-fields/core/fields/wysiwyg.php:133 -
OneDS Start Package40+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:113 -
Fancy Grid Portfolio20+ installs
apply_filters( 'teeny_mce_buttons', array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen' ), $editor_id )lib/advanced-custom-fields/core/fields/wysiwyg.php:163 -
Simple Content Adder20+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )lib/advanced-custom-fields/core/fields/wysiwyg.php:134 -
TSA Commerce20+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )vendors/acf/core/fields/wysiwyg.php:134 -
Social Influencer Links20+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )lib/acf/includes/fields/class-acf-field-wysiwyg.php:128 -
Tuxedo Importer20+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
Accessibility Statement20+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )advanced-custom-fields/core/fields/wysiwyg.php:134 -
Simply Documents10+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )lib/advanced-custom-fields/core/fields/wysiwyg.php:134 -
Church Options10+ installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )lib/advanced-custom-fields/core/fields/wysiwyg.php:134 -
FloristPress for Woo10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )lib/acf/includes/fields/class-acf-field-wysiwyg.php:113 -
Rexpansive Builder10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )admin/lib/acf/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:123 -
Schedule Tweets10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )assets/plugins/acf/includes/fields/class-acf-field-wysiwyg.php:154 -
Megabits Control Gastos10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
WoWpi Guild10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:128 -
Proshots For WooCommerce10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:128 -
Important Dates Dashboard Widget10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
Coronavirus (COVID-19) Live Update Popup10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:143 -
Realty Pack Core10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )app/acf/includes/fields/class-acf-field-wysiwyg.php:143 -
Mufasa 🦁 Slider10+ installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:128 -
Massoftind Custom Fields & Field Builder10+ installs
apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id )fields/Types/WysiwygField.php:178 -
Mighty PortfolioFewer than 10 installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen') )framework/cantoframework.php:97 -
Simple KMDG Resource CenterFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:128 -
Quick RecommendFewer than 10 installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )lib/advanced-custom-fields/core/fields/wysiwyg.php:134 -
ASD Feature MapsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )includes/advanced-custom-fields/core/fields/wysiwyg.php:134 -
Admin Notes WPFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:128 -
Contact Form 7 AnalyticsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )acf/fields/wysiwyg.php:184 -
Ninety in NinetyFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )inc/acf/includes/fields/class-acf-field-wysiwyg.php:143 -
Admin User ControlFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:143 -
Work Time AllocatorFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )lib/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:128 -
House AdsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )lib/acf/includes/fields/class-acf-field-wysiwyg.php:143 -
NavThemes Gutenberg BlocksFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )admin/includes/fields/class-acf-field-wysiwyg.php:143 -
NavThemes Employee RatingsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )admin/includes/fields/class-acf-field-wysiwyg.php:143 -
Flaunt Your ClientsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'justifyleft', 'justifycenter', 'justifyright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id )includes/advanced-custom-fields/core/fields/wysiwyg.php:82 -
Dashboard Feeds Dashboard WidgetFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:123 -
Repeat EventsFewer than 10 installs
apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:128
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.