rwmb_end_html
import FieldHTML from '../_parts/_field-html.md';
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:
{$add_clone_button}
<p id="{$field['id']}-description" class="description">{$field['desc']}</p>
</div><!-- .rwmb-input -->
Syntax:
apply_filters( 'rwmb_end_html', $end, $field, $value );
This filter accepts 3 parameters:
| Name | Description |
|---|---|
$end |
The ending HTML output of the field |
$field |
Field settings |
$value |
Field value |
This filter has variations:
rwmb_end_html: apply to all fieldsrwmb_{$field_type}_end_html: apply to fields with a specific typerwmb_{$field_id}_end_html: apply to a field with a specific id
这篇文档对你有帮助吗?
谢谢你的反馈!