Skip to main content

rwmb_end_html

This filter is similar to rwmb_begin_html and is used to change the ending HTML output of a field. The ending HTML for a field looks like this:

{$clone_button}
{$field_description}
</div><!-- .rwmb-input -->

Syntax:

apply_filters( 'rwmb_end_html', $end, $field, $value );

This filter accepts 3 parameters:

NameDescription
$endThe ending HTML output of the field
$fieldField settings
$valueField value

This filter has variations:

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