Created
May 17, 2012 06:05
-
-
Save sbuzonas/2716869 to your computer and use it in GitHub Desktop.
Add lang variable to wordpress query var stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_lang_var($existing_query_vars) { | |
$existing_query_vars[] = 'lang'; | |
return $existing_query_vars; | |
} | |
add_filter('query_vars', 'add_lang_var'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment