Home › Forums › General Issues › Code styling Localization warning about load_textdomain() › Reply To: Code styling Localization warning about load_textdomain()
I don’t know why you didn’t fix this.
You should not use load_textdomain directly. Instead, you should use load_plugin_textdomain here.
load_plugin_textdomain( 'acf', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
load_plugin_textdomain will make customized language file easily. I can just put my language file into wp-content/languages/plugins.
Please fix it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.