acf_field_email::render_field_presentation_settings()
Renders the field settings used in the "Presentation" tab.
Метод класса: acf_field_email{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_field_email = new acf_field_email(); $acf_field_email->render_field_presentation_settings( $field );
- $field(массив) (обязательный)
- The field settings array.
Список изменений
С версии 6.0 | Введена. |
Код acf_field_email::render_field_presentation_settings() acf field email::render field presentation settings ACF 6.0.4
function render_field_presentation_settings( $field ) { acf_render_field_setting( $field, array( 'label' => __( 'Placeholder Text', 'acf' ), 'instructions' => __( 'Appears within the input', 'acf' ), 'type' => 'text', 'name' => 'placeholder', ) ); acf_render_field_setting( $field, array( 'label' => __( 'Prepend', 'acf' ), 'instructions' => __( 'Appears before the input', 'acf' ), 'type' => 'text', 'name' => 'prepend', ) ); acf_render_field_setting( $field, array( 'label' => __( 'Append', 'acf' ), 'instructions' => __( 'Appears after the input', 'acf' ), 'type' => 'text', 'name' => 'append', ) ); }