acf_field::input_admin_l10npublicACF 3.6

Append l10n text translations to an array which is later passed to JS. Runs on acf/input/admin_l10n.

Method of the class: acf_field{}

No Hooks.

Returns

array. $l10n

Usage

$acf_field = new acf_field();
$acf_field->input_admin_l10n( $l10n );
$l10n(array) (required)
.

Changelog

Since 3.6 Introduced.

acf_field::input_admin_l10n() code ACF 6.8.8

public function input_admin_l10n( $l10n ) {
	// Bail early if no defaults.
	if ( empty( $this->l10n ) ) {
		return $l10n;
	}

	// Append.
	$l10n[ $this->name ] = $this->l10n;

	return $l10n;
}