-
-
Save billerickson/109aee5748cc25640239f5924d882270 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
<?php | |
/** | |
* Simmer Post Type Args | |
* | |
*/ | |
function be_simmer_post_type_args( $args ) { | |
$args['rewrite']['slug'] = 'recipe'; | |
return $args; | |
} | |
add_filter( 'simmer_register_recipe_args', 'be_simmer_post_type_args' ); | |
/** | |
* Simmer Category Args | |
* | |
*/ | |
function be_simmer_category_args( $args ) { | |
$args['rewrite']['slug'] = 'recipe-category'; | |
return $args; | |
} | |
add_filter( 'simmer_register_category_args', 'be_simmer_category_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment