acf_field_repeater::translate_fieldpublicACF 5.3.2

This function will translate field settings.

Method of the class: acf_field_repeater{}

No Hooks.

Returns

Array.

Usage

$acf_field_repeater = new acf_field_repeater();
$acf_field_repeater->translate_field( $field );
$field(array) (required)
The main field array.

Changelog

Since 5.3.2 Introduced.

acf_field_repeater::translate_field() code ACF 6.8.8

function translate_field( $field ) {
	$field['button_label'] = acf_translate( $field['button_label'] );
	return $field;
}