rwmb_wrapper_html
import FieldHTML from '../_parts/_field-html.md';
This filter is used to change the wrapper HTML of a field, e.g. the HTML content inside the <div class="rwmb-field..."></div>.
Syntax:
apply_filters( 'rwmb_wrapper_html', $html, $field, $meta );
This filter accepts 3 parameters:
| Name | Description |
|---|---|
$html |
The wrapper HTML of the field |
$field |
Field settings |
$meta |
Field value |
This filter has variations:
rwmb_wrapper_html: apply to all fieldsrwmb_{$field_type}_wrapper_html: apply to fields with a specific typerwmb_{$field_id}_wrapper_html: apply to a the field with a specific id
这篇文档对你有帮助吗?
谢谢你的反馈!