WordPress action hook · part of WordPress core
media_buttons
A WordPress core action that 190 plugins also fire themselves, running on 3.1M+ sites between them.
How to use media_buttons
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'media_buttons', function( $id ) {
// Your code runs here.
}, 10, 1 );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 →
190 plugins that fire media_buttons
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes. Showing the 150 most used.
-
Advanced Custom Fields (ACF®)2+ million installs
do_action( 'media_buttons', $id )includes/fields/class-acf-field-wysiwyg.php:264 -
SiteOrigin Widgets Bundle400,000+ installs
do_action( 'media_buttons', $editor_id )base/inc/fields/tinymce.class.php:633 -
Black Studio TinyMCE Widget200,000+ installs
do_action( 'media_buttons', $id )includes/class-compatibility-wordpress.php:338 -
Disable XML-RPC-API100,000+ installs
do_action( 'media_buttons' )lib/skelet/fields/wp_editor/wp_editor.php:73 -
Secure Custom Fields100,000+ installs
do_action( 'media_buttons', $id )includes/fields/class-acf-field-wysiwyg.php:252 -
Easy Accordion70,000+ installs
do_action( 'media_buttons' )admin/views/models/fields/wp_editor/wp_editor.php:110 -
AI-Powered Carousel, Slider, Video & Photo Gallery Blocks by WP Carousel60,000+ installs
do_action( 'media_buttons' )admin/views/sp-framework/fields/wp_editor/wp_editor.php:108 -
Real Testimonials40,000+ installs
do_action( 'media_buttons' )src/Admin/Views/Framework/fields/wp_editor/wp_editor.php:105 -
Custom Order Status Manager for WooCommerce30,000+ installs
do_action( 'media_buttons' )include/codestar/fields/wp_editor/wp_editor.php:77 -
Cool Timeline (Horizontal & Vertical Timeline)20,000+ installs
do_action( 'media_buttons' )admin/codestar-framework/fields/wp_editor/wp_editor.php:79 -
Product Gallery Slider, Additional Variation Images for WooCommerce20,000+ installs
do_action( 'media_buttons' )includes/cdx-framework/fields/wp_editor/wp_editor.php:77 -
WP User Manager10,000+ installs
do_action( 'media_buttons' )vendor-dist/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:123 -
Custom Product Tabs for WooCommerce & WordPress Tabs Builder10,000+ installs
do_action( 'media_buttons' )src/Lib/CSFramework/fields/wp_editor/wp_editor.php:125 -
HashBar9,000+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
ACF qTranslate8,000+ installs
do_action( 'media_buttons', $id )src/acf_4/fields/wysiwyg.php:123 -
ACF Frontend Admin by DynamiApps8,000+ installs
do_action( 'media_buttons', $id )main/frontend/fields/post/class-post-content.php:263 -
CM Pop-Up8,000+ installs
do_action( 'media_buttons' )libs/wpalchemy/metaboxes/cm-help-items.php:64 -
Pre-Orders for WooCommerce7,000+ installs
do_action( 'media_buttons' )includes/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Adminify6,000+ installs
do_action( 'media_buttons' )Libs/adminify-framework/fields/wp_editor/wp_editor.php:77 -
Swatchly5,000+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Scrollsequence3,000+ installs
do_action( 'media_buttons' )includes/carbonfields/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:138 -
Mapster WP Maps3,000+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:264 -
EazyDocs2,000+ installs
do_action( 'media_buttons' )includes/csf/fields/wp_editor/wp_editor.php:77 -
Timeline2,000+ installs
do_action( 'media_buttons' )inc/codestar/fields/wp_editor/wp_editor.php:77 -
FAQ Schema2,000+ installs
do_action( 'media_buttons' )admin/faqsu-framework/fields/wp_editor/wp_editor.php:73 -
Loginfy2,000+ installs
do_action( 'media_buttons' )Libs/Admin/fields/wp_editor/wp_editor.php:77 -
Deposits & Partial Payments for WooCommerce1,000+ installs
do_action( 'media_buttons' )includes/codestar/fields/wp_editor/wp_editor.php:77 -
Logo Carousel800+ installs
do_action( 'media_buttons' )metabox/csf/fields/wp_editor/wp_editor.php:77 -
Dynamic Copyright Year800+ installs
do_action( 'media_buttons' )inc/codestar-framework/fields/wp_editor/wp_editor.php:77 -
BH Custom CSS3 Preloader700+ installs
do_action( 'media_buttons' )options/fields/wp_editor/wp_editor.php:77 -
Open Close Store for WooCommerce600+ installs
do_action( 'media_buttons' )includes/wp-dev-kit/settings/fields/wp_editor/wp_editor.php:80 -
Chwazi500+ installs
do_action( 'media_buttons' )lib/codestar-framework/fields/wp_editor/wp_editor.php:77 -
JustTables500+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Wishlist for WooCommerce500+ installs
do_action( 'media_buttons' )inc/codestar-framework/fields/wp_editor/wp_editor.php:77 -
WebHotelier for WordPress500+ installs
do_action( 'media_buttons' )includes/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Forumax500+ installs
do_action( 'media_buttons' )lib/csf/fields/wp_editor/wp_editor.php:77 -
FancyPost500+ installs
do_action( 'media_buttons' )custom-fields/fields/wp_editor/wp_editor.php:77 -
Ultimate Fields400+ installs
do_action( 'media_buttons', $id . '_id' )core/templates/field/wysiwyg.php:3 -
Liteweight Podcast400+ installs
do_action( 'media_buttons' )admin/framework/fields/wp_editor/wp_editor.php:77 -
Header Promo400+ installs
do_action( 'media_buttons' )inc/csf/fields/wp_editor/wp_editor.php:73 -
Order Delivery Date Time & Pickup for WooCommerce400+ installs
do_action( 'media_buttons' )includes/codestar/fields/wp_editor/wp_editor.php:77 -
Interactive Globes400+ installs
do_action( 'media_buttons' )vendor-prefixed/saltus/framework/lib/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Pay With MetaMask For WooCommerce400+ installs
do_action( 'media_buttons' )admin/codestar-framework/fields/wp_editor/wp_editor.php:80 -
WPScreens300+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:289 -
Chat Support for Viber300+ installs
do_action( 'media_buttons' )src/Admin/Framework/fields/wp_editor/wp_editor.php:77 -
Ultimate Infinite Scroll, AJAX Lazy load Plugin for Posts & Woocommerce300+ installs
do_action( 'media_buttons' )admin/fields/wp_editor/wp_editor.php:73 -
Editorial Rating200+ installs
do_action( 'media_buttons' )4.0.3/admin/wpas-framework/fields/wp_editor/wp_editor.php:73 -
Fontier200+ installs
do_action( 'media_buttons' )admin/vendors/codestar-framework/fields/wp_editor/wp_editor.php:78 -
Changeloger200+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
MapifyLite (by MapifyPro)200+ installs
do_action( 'media_buttons', $id )lib/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:255 -
kitpack for persian elementor200+ installs
do_action( 'media_buttons' )admin/framework/fields/wp_editor/wp_editor.php:77 -
Feeds for Pinterest200+ installs
do_action( 'media_buttons' )admin/views/framework/fields/wp_editor/wp_editor.php:77 -
Counten- Sale Counter Advanced200+ installs
do_action( 'media_buttons' )admin/vendors/codestar-framework/fields/wp_editor/wp_editor.php:73 -
Advanced Custom Fields: Markdown Field100+ installs
do_action( 'media_buttons' )acf-markdown-v4.php:305 -
PublishPress Shortlinks100+ installs
do_action( 'media_buttons' )includes/wp-dev-kit/settings/fields/wp_editor/wp_editor.php:83 -
Flexible Scroll Top100+ installs
do_action( 'media_buttons' )includes/libraries/codestar-flscto/fields/wp_editor/wp_editor.php:77 -
WP Tabby100+ installs
do_action( 'media_buttons' )includes/model/fields/wp_editor/wp_editor.php:73 -
WP Related Posts and Products (WRI)100+ installs
do_action( 'media_buttons', $id )advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:325 -
Click To Dial100+ installs
do_action( 'media_buttons' )admin/fields/wp_editor/wp_editor.php:77 -
Click To Email100+ installs
do_action( 'media_buttons' )admin/fields/wp_editor/wp_editor.php:77 -
Disable Email Notifications for WooCommerce100+ installs
do_action( 'media_buttons' )includes/codestar/fields/wp_editor/wp_editor.php:77 -
Testimonial100+ installs
do_action( 'media_buttons' )admin/codestar-framework/fields/wp_editor/wp_editor.php:73 -
People Lists100+ installs
do_action( 'media_buttons' )people-lists.php:293 -
Preview Link Generator100+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:73 -
IDonate100+ installs
do_action( 'media_buttons' )src/Admin/Framework/fields/wp_editor/wp_editor.php:81 -
Jobus90+ installs
do_action( 'media_buttons' )lib/csf/fields/wp_editor/wp_editor.php:77 -
B Laser Loader80+ installs
do_action( 'media_buttons' )admin/framework/fields/wp_editor/wp_editor.php:73 -
Flexblocks80+ installs
do_action( 'media_buttons', $id )inc/acf/includes/fields/class-acf-field-wysiwyg.php:276 -
ChaChing80+ installs
do_action( 'media_buttons' )include/codestar/fields/wp_editor/wp_editor.php:77 -
atshift Fields (Maintenance for Custom Field Suite)80+ installs
do_action( 'media_buttons' )includes/fields/wysiwyg.php:24 -
JL Like Pro70+ installs
do_action( 'media_buttons', 'default_image' )tmpl/adminform.php:358 -
Chat Support for Telegram70+ installs
do_action( 'media_buttons' )admin/csf/fields/wp_editor/wp_editor.php:77 -
Pre Order for WooCommerce70+ installs
do_action( 'media_buttons' )inc/codestar/fields/wp_editor/wp_editor.php:77 -
Mine CloudVod70+ installs
do_action( 'media_buttons' )csf/fields/wp_editor/wp_editor.php:79 -
Bayarcash for Fluent Forms60+ installs
do_action( 'media_buttons' )includes/codestar-framework/fields/wp_editor/wp_editor.php:77 -
My Pricing Table60+ installs
do_action( 'media_buttons' )inc/csf/fields/wp_editor/wp_editor.php:77 -
Dooodl50+ installs
do_action( 'media_buttons' )includes/libs/advanced-custom-fields/core/fields/wysiwyg.php:225 -
MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar50+ installs
do_action( 'media_buttons' )admin/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Monster Downloader50+ installs
do_action( 'media_buttons' )includes/sdk/settings/fields/wp_editor/wp_editor.php:77 -
BuddyPress Groupblog50+ installs
do_action( 'media_buttons' )themes/p2/inc/p2.php:54 -
bChart40+ installs
do_action( 'media_buttons' )b-chart/inc/codestar/fields/wp_editor/wp_editor.php:73 -
Author Bio On Hover40+ installs
do_action( 'media_buttons' )admin/aoh-framework/fields/wp_editor/wp_editor.php:77 -
OneDS Start Package40+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:255 -
dPlayer30+ installs
do_action( 'media_buttons' )inc/codestar-framework/fields/wp_editor/wp_editor.php:73 -
Social Influencer Links30+ installs
do_action( 'media_buttons', $id )lib/acf/includes/fields/class-acf-field-wysiwyg.php:314 -
Amp Stories for WordPress30+ installs
do_action( 'media_buttons' )vafpress/views/control/wpeditor.php:13 -
Premium Contact Buttons20+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Tuxedo Importer20+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:276 -
Add to Cart Button Pro for WooCommerce20+ installs
do_action( 'media_buttons' )admin/partials/custom-fields/fields/wp_editor/wp_editor.php:77 -
Accessibility Statement20+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:276 -
网易云音乐20+ installs
do_action( 'media_buttons' )inc/fields/wp_editor/wp_editor.php:77 -
Exclusive Hover effects20+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
Ultimate Social Media Share20+ installs
do_action( 'media_buttons' )admin/fields/wp_editor/wp_editor.php:73 -
ThemeRegion Companion20+ installs
do_action( 'media_buttons' )admin/partials/codestar-framework/fields/wp_editor/wp_editor.php:73 -
Finch Cart20+ installs
do_action( 'media_buttons' )includes/Admin/Edith/includes/Framework/fields/wp_editor/wp_editor.php:77 -
Filter Anything20+ installs
do_action( 'media_buttons' )lib/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:138 -
Beautiful Gallery20+ installs
do_action( 'media_buttons' )inc/codestar/fields/wp_editor/wp_editor.php:73 -
Fancy Grid Portfolio20+ installs
do_action( 'media_buttons', $id )lib/advanced-custom-fields/core/fields/wysiwyg.php:343 -
افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download20+ installs
do_action( 'media_buttons' )includes/core/payamito-core/admin/lib/codestar-framework/fields/wp_editor/wp_editor.php:76 -
Simple Content Adder20+ installs
do_action( 'media_buttons', $id )lib/advanced-custom-fields/core/fields/wysiwyg.php:252 -
Interactive Cursor20+ installs
do_action( 'media_buttons' )admin/framework/fields/wp_editor/wp_editor.php:75 -
LeSeo20+ installs
do_action( 'media_buttons' )inc/codestar-framework/fields/wp_editor/wp_editor.php:77 -
MarkItUp!20+ installs
do_action( 'media_buttons', $editor_id )markitup_editor.php:39 -
WP Petfinder20+ installs
do_action( 'media_buttons' )inc/vafpress-framework/views/control/wpeditor.php:13 -
TSA Commerce20+ installs
do_action( 'media_buttons', $id )vendors/acf/core/fields/wysiwyg.php:253 -
Proshots For WooCommerce10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:314 -
一款精美的在线 旅行地图标记,记录日志插件10+ installs
do_action( 'media_buttons' )inc/fields/wp_editor/wp_editor.php:77 -
WP Coupon System10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
Ultimate SMS Notifications10+ installs
do_action( 'media_buttons' )admin/fields/wp_editor/wp_editor.php:73 -
Winsome Nice Scrollbar10+ installs
do_action( 'media_buttons' )vafpress/views/control/wpeditor.php:13 -
OnePage Checkout Lite for WHMCS10+ installs
do_action( 'media_buttons' )includes/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Wing Popup10+ installs
do_action( 'media_buttons' )includes/libs/wingcore/fields/wp_editor/wp_editor.php:106 -
Wxs Text Watermarking10+ installs
do_action( 'media_buttons' )lib/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Amazing Team Member Carousel10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
FloristPress for Woo10+ installs
do_action( 'media_buttons', $id )lib/acf/includes/fields/class-acf-field-wysiwyg.php:255 -
B Portfolio10+ installs
do_action( 'media_buttons' )inc/codestar/fields/wp_editor/wp_editor.php:73 -
Rexpansive Builder10+ installs
do_action( 'media_buttons', $id )admin/lib/acf/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:276 -
Schedule Tweets10+ installs
do_action( 'media_buttons', $id )assets/plugins/acf/includes/fields/class-acf-field-wysiwyg.php:354 -
Chat for Skype10+ installs
do_action( 'media_buttons' )admin/ta-framework/fields/wp_editor/wp_editor.php:81 -
LogicalDOC WordPress Explorer10+ installs
do_action( 'media_buttons', $id )advanced-custom-fields/core/fields/wysiwyg.php:253 -
Affiliate Product Review10+ installs
do_action( 'media_buttons' )lib/codestar-framework/fields/wp_editor/wp_editor.php:77 -
Megabits Control Gastos10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:276 -
SS Nano Contact10+ installs
do_action( 'media_buttons' )inc/codestar/fields/wp_editor/wp_editor.php:77 -
MailBard Newsletters10+ installs
do_action( 'media_buttons' )legacy/helpers/forms.php:161 -
Ultimate Product Gallery for WooCommerce10+ installs
do_action( 'media_buttons' )vafpress-framework/views/control/wpeditor.php:13 -
Product Screenshot10+ installs
do_action( 'media_buttons' )includes/libs/codestar-framework/fields/wp_editor/wp_editor.php:77 -
WoWpi Guild10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:314 -
TWI Woocommerce Grid/Slider/Carousel Lite10+ installs
do_action( 'media_buttons' )inc/views/control/wpeditor.php:13 -
Important Dates Dashboard Widget10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:276 -
WPVideoBaker10+ installs
do_action( 'media_buttons' )includes/library/codestar-framework/fields/wp_editor/wp_editor.php:77 -
super portfolios and effects10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
Miaoroom ToolBox10+ installs
do_action( 'media_buttons' )admin/CSF/fields/wp_editor/wp_editor.php:71 -
Floating Share Button10+ installs
do_action( 'media_buttons' )includes/libraries/codestar-flshbu/fields/wp_editor/wp_editor.php:77 -
Coronavirus (COVID-19) Live Update Popup10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:325 -
淘宝客(官方接口)10+ installs
do_action( 'media_buttons' )inc/fields/wp_editor/wp_editor.php:77 -
LATMMO Aff Amazon10+ installs
do_action( 'media_buttons' )libs/codestar-framework/fields/wp_editor/wp_editor.php:73 -
Simply Documents10+ installs
do_action( 'media_buttons', $id )lib/advanced-custom-fields/core/fields/wysiwyg.php:253 -
Realty Pack Core10+ installs
do_action( 'media_buttons', $id )app/acf/includes/fields/class-acf-field-wysiwyg.php:325 -
BlueOcean order map for WooCommerce10+ installs
do_action( 'media_buttons' )lib/codestar-framework/fields/wp_editor/wp_editor.php:71 -
Mufasa 🦁 Slider10+ installs
do_action( 'media_buttons', $id )includes/acf/includes/fields/class-acf-field-wysiwyg.php:314 -
Church Options10+ installs
do_action( 'media_buttons', $id )lib/advanced-custom-fields/core/fields/wysiwyg.php:253 -
Easy Currency Converter Plugin10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
Jheck Chat10+ installs
do_action( 'media_buttons' )vafpress/views/control/wpeditor.php:13 -
WCBox Lite10+ installs
do_action( 'media_buttons' )vafpress-framework/views/control/wpeditor.php:13 -
modal popup portfolio and hover effects10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
Responsive Gallery Lightbox10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
VideoNab10+ installs
do_action( 'media_buttons' )lib/carbon-fields/Carbon_Field.php:590 -
Noor Responsive Tab10+ installs
do_action( 'media_buttons' )framework/views/control/wpeditor.php:13 -
GalleriaPress10+ installs
do_action( 'media_buttons' )libraries/wp-media/wp-media.php:92 -
Genesis Inline10+ installs
do_action( 'media_buttons' )lib/class.ginline.php:51
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.