rwmb_outer_html
import FieldHTML from '../_parts/_field-html.md';
This filter is used to change the outer HTML output of a field. Outer HTML is the surrounding div (the most outside) of the field.
This filter is used to change the field outer HTML, e.g. the wrapper div of everything for the field.
apply_filters( 'rwmb_outer_html', $html, $field, $value );
This filter accepts 3 parameters:
| Name | Description |
|---|---|
$html |
The outer HTML output of a field |
$field |
Field settings |
$value |
Field value |
This filter has variations:
rwmb_outer_html: apply to all fieldsrwmb_{$field_type}_outer_html: apply to fields with a specific typerwmb_{$field_id}_outer_html: apply to a the field with a specific id
这篇文档对你有帮助吗?
谢谢你的反馈!