Skip to main content


This filter is used to change the wrapper HTML of a field.

apply_filters( 'rwmb_wrapper_html', $html, $field, $meta );

This filter accepts 3 parameters:

$htmlThe wrapper HTML of the field
$fieldField settings
$metaField value

This filter has variations:

  • rwmb_wrapper_html: apply for all fields
  • rwmb_{$field_type}_wrapper_html: apply for fields with a specific type
  • rwmb_{$field_id}_wrapper_html: apply for a the field with a specific id