Skip to main content


This filter is used to change the beginning HTML output of a field. The default beginning HTML of a field is:

<div class="rwmb-label">
<label for="{$field_id}">{$field_name}</label>
<div class="rwmb-input">


apply_filters( 'rwmb_begin_html', $begin, $field, $value );

This filter accepts 3 parameters:

$beginThe beginning HTML output of the field
$fieldField settings
$valueField value

This filter has variations:

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