Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active December 28, 2016 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/109aee5748cc25640239f5924d882270 to your computer and use it in GitHub Desktop.
Save billerickson/109aee5748cc25640239f5924d882270 to your computer and use it in GitHub Desktop.
<?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