Loading...
12
26

ACF backend UI language

24/02/2023
1 minute

Advanced Custom Fields automatically uses user’s language settings in backend. Many times this is not optimal. For example user want to have the backend in his native language but don’t like to see the translation of ACF interface (let’s face it, most of the time you want the English language for the admin interface). Just paste the above code in functions.php file in your theme

add_filter( 'plugin_locale', function($locale, $domain) {
	
	if ( is_admin() && $domain = 'acf' ) {
		return 'en';
	}

	return $locale;
}, 10, 2 );

Do you want to comment?

Your email address will not be published. Required fields are marked *

83 Pixel. creative studio
Get Quote - EN