Replies: 0
Hi,
My name is David from the WPML Compatibility team. I’m writing to you about helping to resolve an issue between WPML and “Header and Footer” plugin.
WPML hooks on to several WordPress actions & filters to do the translating.
When we try to translate this plugin’s configuration options, we run into problems because “Header and Footer” loads these options too early. Before WPML has had the chance to set its hooks.
One possible solution is to re-read the options after all plugins have been loaded, like this:
add_action('plugins_loaded', 'hefo_refresh_options', 11);
function hefo_refresh_options() {
global $hefo_options;
$hefo_options = get_option('hefo');
}
Adding these lines you will be able to translate chosen configuration options as explained here:
https://wpml.org/documentation/getting-started-guide/string-translation/#admin_texts
Would you consider including a fix in your plugin?