MaxButtons 9.8.6 has 17 actions and 23 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when MaxButtons fires an action
add_action( 'mb/editor/display_notices', function() {
// Your code runs here.
}, 10, 1 );
// Change a value MaxButtons is about to use
add_filter( 'maxbuttons/list/num_items', function( $limit ) {
// Change $limit here.
return $limit;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
mb/editor/display_notices
action/** * Display admin notices */ do_action( 'mb/editor/display_notices' ); -
mb-display-ads
actiondo_action( 'mb-display-ads' ); -
mb-display-pagination
actiondo_action( 'mb-display-pagination', $args, 'top' ); -
maxbuttons/list/num_items
filterapply_filters( 'maxbuttons/list/num_items', $limit ); -
mb-support-link
filterapply_filters( 'mb-support-link', 'http://wordpress.org/support/plugin/maxbuttons' ); -
apply_filters( 'mb/button/data_before_display', $data, $mode, array('preview' => $preview, 'compile' => $compile) ); -
apply_filters( "{$this->blockname}-block-fields", $this->fields ); -
do_action( 'maxbutton-direct-integrations' ); -
maxbuttons_settings_end
actiondo_action( 'maxbuttons_settings_end' ); -
do_action( "maxbuttons/ajax/{$plugin_action}", $_POST ); -
maxbuttons/editor/actions
filterapply_filters( 'maxbuttons/editor/actions', $actions ); -
do_action( 'maxbuttons/init/editor_scripts' ); -
apply_filters( 'maxbuttons/plugin/admin_pages', $this->admin_pages ); -
maxbuttons/plugin/init
actiondo_action( 'maxbuttons/plugin/init', $maxbuttons ); -
mb_shortcode_display_args
filterapply_filters( 'mb_shortcode_display_args', $args, $button_id, $this->data ); -
mb-before-button-output
filterapply_filters( 'mb-before-button-output', $output ); -
mb-block-paths
filterapply_filters( 'mb-block-paths', array(MB()->get_plugin_path() . "blocks/") ); -
mb-display-logo
actiondo_action( 'mb-display-logo' ); -
mb-display-meta
actiondo_action( 'mb-display-meta' ); -
mb-display-tabs
actiondo_action( 'mb-display-tabs' ); -
mb-interface-end
actiondo_action( 'mb-interface-end' ); -
mb-interface-start
actiondo_action( 'mb-interface-start' ); -
mb-url
filterapply_filters( 'mb-url', $url, $data['url'] ); -
mb-url-{$button_id}
filterapply_filters( "mb-url-{$button_id}", $url, $data['url'] ); -
mb/button/compiledcss
filterapply_filters( 'mb/button/compiledcss', $css, $mode ); -
mb/button/rawcss
filterapply_filters( 'mb/button/rawcss', $css, $mode ); -
mb/button/rel
filterapply_filters( 'mb/button/rel', $rels ); -
mb/button/save
actiondo_action( 'mb/button/save', $this->id ); -
mb/display_fields
filterapply_filters( 'mb/display_fields', $this->fields ); -
mb/editor/addfield
filterapply_filters( 'mb/editor/addfield', $this->fields, $field, $this ); -
do_action( "mb/editor/afterfield/{$field_id}", $field, $this ); -
mb/editor/templates
filterapply_filters( 'mb/editor/templates', $templates ); -
mb/header/display_notices
actiondo_action( 'mb/header/display_notices' ); -
apply_filters( 'mb/integrations/auto_inline_tablepress', true ); -
mb/media/shortcode_data
filterapply_filters( 'mb/media/shortcode_data', $shortcode_data, $screen ); -
mb/shortcode/data
filterapply_filters( 'mb/shortcode/data', $this->data, $atts ); -
mb/shortcode/nocache
filterapply_filters( 'mb/shortcode/nocache', $atts['nocache'] ); -
mb/use_unsafe_js/
filterapply_filters( 'mb/use_unsafe_js/', false ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), $domain );
Generated from MaxButtons's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: