Skip to content

Instantly share code, notes, and snippets.

@brasofilo
Last active August 29, 2018 19:02
Show Gist options
  • Save brasofilo/6524329 to your computer and use it in GitHub Desktop.
Save brasofilo/6524329 to your computer and use it in GitHub Desktop.
WordPress plugin to deal with language cookies. Create one page for each language. Then a menu with them. Configure the arguments in the plugin file. Than do your thing in your theme with $_COOKIE[cookie_name].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment