acf_field_repeater::render_field()
Create the HTML interface for your field
Метод класса: acf_field_repeater{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_field_repeater = new acf_field_repeater(); $acf_field_repeater->render_field( $field );
- $field(массив) (обязательный)
- An array holding all the field's data.
Список изменений
С версии 3.6 | Введена. |
Код acf_field_repeater::render_field() acf field repeater::render field ACF 6.0.4
public function render_field( $field ) { $field['orig_name'] = $this->get_field_name_from_input_name( $field['name'] ); $field['total_rows'] = (int) acf_get_metadata( $this->post_id, $field['orig_name'] ); $table = new ACF_Repeater_Table( $field ); $table->render(); }