Skip to content

Instantly share code, notes, and snippets.

@azizultex
Created July 6, 2016 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizultex/a89d85fb94a35e27e8e0c293a28ac44d to your computer and use it in GitHub Desktop.
Save azizultex/a89d85fb94a35e27e8e0c293a28ac44d to your computer and use it in GitHub Desktop.
Register a new string WPML
if(function_exists('icl_register_string')) {
icl_register_string ( 'Quovim', 'Copyright', $copyright );
}
if(function_exists('icl_translate')) {
$copyright = icl_translate( 'Quovim', 'Copyright', $copyright );
}
echo $copyright;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment