acf_field_repeater::pre_render_fields()
Runs on the "acf/pre_render_fields" filter. Used to signify that we're currently rendering a repeater field.
Метод класса: acf_field_repeater{}
Хуков нет.
Возвращает
Массив
.
Использование
$acf_field_repeater = new acf_field_repeater(); $acf_field_repeater->pre_render_fields( $fields, $post_id );
- $fields(массив) (обязательный)
- The main field array.
- $post_id(разное)
- The post ID for the field being rendered.
По умолчанию: false
Список изменений
С версии 6.0.0 | Введена. |
Код acf_field_repeater::pre_render_fields() acf field repeater::pre render fields ACF 6.0.4
public function pre_render_fields( $fields, $post_id = false ) { if ( is_admin() ) { $this->is_rendering = true; $this->post_id = $post_id; } return $fields; }