acf/post_type/admin_l10n filter-hookACF 5.3.8

This function will append extra l10n strings to the acf JS object

Usage

add_filter( 'acf/post_type/admin_l10n', 'wp_kama_acf_post_type_admin_l10n_filter' );

/**
 * Function for `acf/post_type/admin_l10n` filter-hook.
 * 
 * @param array $l10n The array of translated strings.
 *
 * @return array
 */
function wp_kama_acf_post_type_admin_l10n_filter( $l10n ){

	// filter...
	return $l10n;
}
$l10n(array)
The array of translated strings.

Changelog

Since 5.3.8 Introduced.

Where the hook is called

ACF_Admin_Post_type::admin_l10n()
acf/post_type/admin_l10n
acf/includes/admin/post-types/admin-post-type.php 216
return apply_filters( 'acf/post_type/admin_l10n', $l10n );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.