1

By default, WordPress loads the .mo file from my-theme/languages or wp-content/langugages/themes.

I need to add another path for WordPress in my plugin. For example, WordPress should load the .mo file from wp-content/langugages/my-plugin/.

Does anyone know the correct filter?

2

After some more reseach, I found load_textdomain function which can help to load .mo file from any location.

load_textdomain($domain, $mofile);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.