acf_field_repeater::pre_render_fields()publicACF 6.0.0

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.
The post ID for the field being rendered.
По умолчанию: false

Список изменений

С версии 6.0.0 Введена.

Код 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;