Open herrvigg opened 6 years ago
Comment by johnclause Monday Jul 11, 2016 at 18:06 GMT
hooking in 'init' is "too late", the language has to be detected and set right in the beginning, since many things depend on language in other plugins and in the theme. Find another way, you do not have to use functions.php for that purpose.
Issue by owiekindisch Monday Jul 11, 2016 at 18:01 GMT Originally opened as https://github.com/qTranslate-Team/qtranslate-x/issues/405
Hello,
I'm not able to use the action
qtranslate_init_language
or filteri18n_admin_config
andqtranslate_load_admin_page_config
in the theme functions.php because the plugin files and your code executes before the theme files are loaded. A solution would be if you hook your initialization withadd_action( 'init', ... );