Skip to main content

rwmb_begin_html

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>
<div class="rwmb-input">

Syntax:

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

This filter accepts 3 parameters:

NameDescription
$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