Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Last active Dec 28, 2016

Embed
What would you like to do?
<?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
You can’t perform that action at this time.