Skip to main content


This filter is used to change the HTML of the field input.

The HTML of a field input is various and depends on the field type. For example, a text field outputs an input tag, while a wysiwyg field outputs a complex div.

apply_filters( "rwmb_{$field_type}_html", $html, $field, $value );

This filter accepts 3 parameters:

$htmlHTML output of a field
$fieldField settings
$valueField value

This filter has variations:

  • rwmb_{$field_type}_html: apply for fields with a specific type
  • rwmb_{$field_id}_html: apply for a field with a specific id