Hello,
I have a problem with automatic WPML translations of links to pages in another language.
In the WPML forum, I found this solution. I should insert into functions.php:
add_filter( ‘wpml_sl_blacklist_requests’, ‘wpml_sl_blacklist_requests’, 10, 2 );
function wpml_sl_blacklist_requests( $blacklist, $sitepress ) {
$blacklist[] = ‘documentation’;
return $blacklist;
}
As far as I understand, the Elements (hooks) are designed for exactly the purpose that we do NOT need to edit the functions.php.
I tried a bit in Elements (I have already other elements working well) but no success.
Can you tell me how exactly I can get the above code to work with an element?
Thanks
Stephan