Last active
August 29, 2015 14:21
-
-
Save Deaner666/b25c25e5b8cf4f03b9e9 to your computer and use it in GitHub Desktop.
Declare custom URL parameters in WordPress
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
<?php | |
// Declare custom URL parameters | |
add_filter( 'query_vars', 'wpm_add_query_vars_filter' ); | |
function wpm_add_query_vars_filter( $vars ) { | |
$vars[] = "tier"; | |
$vars[] = "second-param"; | |
$vars[] = "third-param"; // etc. | |
return $vars; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment