Created
October 9, 2014 16:16
-
-
Save mrpsiho/4681745be071efa30880 to your computer and use it in GitHub Desktop.
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 uni_add_rewrite_rules() { | |
add_rewrite_rule('sushi-cats/([^/]*)/metro/([^/]*)/?$','index.php?product_cat=$matches[1]&metro=$matches[2]','top'); | |
add_rewrite_rule('sushi-cats/(sushi|roll|set)/metro/([^/]*)/?$','index.php?product_cat=$matches[1]&metro=$matches[2]','top'); | |
} | |
add_action( 'init', 'uni_add_rewrite_rules' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment