Meta Box 5.15.5 has 15 actions and 43 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 Meta Box fires an action
add_action( 'rwmb_enqueue_scripts', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value Meta Box is about to use
add_filter( 'rwmb_google_maps_url', function( $google_maps_url ) {
// Change $google_maps_url here.
return $google_maps_url;
}, 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
-
/** * Allows developers load more libraries via a filter. */ apply_filters( 'rwmb_google_maps_url', $google_maps_url ); -
/** * Allow developers to change the value of the post. Used for WPML integration. */ apply_filters( '_rwmb_post_format_single_value', $value, $field ); -
/** * Allow developers to enqueue more scripts and styles */ do_action( 'rwmb_enqueue_scripts', $this ); -
/** * Filters whether the shortcode can read the object. */ apply_filters( 'rwmb_meta_shortcode_permission', $allowed, $object_type, $object_id, $atts, $field_id ); -
/** * Filter meta type from object type and object id. */ apply_filters( 'rwmb_meta_type', $args['type'], $args['object_type'], $object_id ); -
do_action( 'rwmb_flush_data', $object_id, $field, $args ); -
apply_filters( 'wpml_object_id', $value, $object_type, true, $target_language ); -
apply_filters( 'rwmb_get_storage', $storage, $object_type, $meta_box ); -
apply_filters( 'rwmb_meta', $value, $key, $args, $post_id ); -
do_action( 'enqueue_block_editor_assets' ); -
do_action( "rwmb_{$this->id}_after_save_post", $object_id ); -
do_action( "rwmb_{$this->id}_before_save_post", $object_id ); -
do_action( 'rwmb_after', $this ); -
do_action( "rwmb_after_{$this->id}", $this ); -
do_action( 'rwmb_after_delete_field', $object_id, $key, $args, $result ); -
do_action( 'rwmb_after_save_post', $object_id ); -
apply_filters( 'rwmb_ajax_get_posts', $items, $field, $request ); -
apply_filters( 'rwmb_ajax_get_terms', $items, $field, $request ); -
apply_filters( 'rwmb_ajax_get_users', $items, $field, $request ); -
apply_filters( 'rwmb_autocomplete_field', $field, $meta ); -
apply_filters( 'rwmb_autocomplete_result_label', $value, $field ); -
do_action( 'rwmb_before', $this ); -
do_action( "rwmb_before_{$this->id}", $this ); -
do_action( 'rwmb_before_delete_field', $object_id, $key, $args ); -
do_action( 'rwmb_before_save_post', $object_id ); -
do_action( 'rwmb_enqueue_block_editor_assets' ); -
apply_filters( 'rwmb_field_class', $class, $type ); -
do_action( 'rwmb_field_registered', $field, $type, $object_type ); -
apply_filters( 'rwmb_file_add_string', _x( '+ Add new file', 'file upload', 'meta-box' ), $field ); -
apply_filters( 'rwmb_file_delete_string', _x( 'Delete', 'file upload', 'meta-box' ) ); -
apply_filters( 'rwmb_file_edit_string', _x( 'Edit', 'file upload', 'meta-box' ) ); -
apply_filters( 'rwmb_get_value', $value, $field, $args, $post_id ); -
apply_filters( 'rwmb_media_add_string', _x( '+ Add Media', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_edit_string', _x( 'Edit', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_multiple_files_string', _x( ' files', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_or_string', _x( 'or', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_remove_string', _x( 'Remove', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_select_string', _x( 'Select Files', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_single_files_string', _x( ' file', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_upload_instructions_string', _x( 'Drop files here to upload', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_media_view_string', _x( 'View', 'media', 'meta-box' ) ); -
apply_filters( 'rwmb_meta_box_class_name', 'RW_Meta_Box', $settings ); -
apply_filters( 'rwmb_meta_box_settings', $this->meta_box ); -
apply_filters( 'rwmb_meta_boxes', [] ); -
apply_filters( 'rwmb_meta_shortcode_secure', true, $field_id, $atts, $object_id ); -
apply_filters( "rwmb_meta_shortcode_secure_{$field_id}", $secure, $atts, $object_id ); -
apply_filters( "rwmb_normalize_{$field['id']}_field", $field ); -
apply_filters( "rwmb_normalize_{$field['type']}_field", $field ); -
apply_filters( 'rwmb_normalize_field', $field ); -
apply_filters( 'rwmb_oembed_not_available_string', $not_available, $url ); -
apply_filters( 'rwmb_show', true, $this->meta_box ); -
apply_filters( "rwmb_show_{$this->id}", $show, $this->meta_box ); -
apply_filters( 'rwmb_the_value', $output, $field, $args, $post_id ); -
apply_filters( 'rwmb_validation_message_string', __( 'Please correct the errors highlighted below and try again.', 'meta-box' ) ); -
apply_filters( 'rwmb_wysiwyg_settings', $field['options'] ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' );
Generated from Meta Box's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: