Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created March 21, 2015 23:11
Show Gist options
  • Save bryceadams/497c25413d1ddbd584f7 to your computer and use it in GitHub Desktop.
Save bryceadams/497c25413d1ddbd584f7 to your computer and use it in GitHub Desktop.
Recipe Hero - add an ingredient amount and set as the default
add_filter( 'recipe_hero_meta_ingredients_amount', 'rhs_add_new_amount' );
function rhs_add_new_amount( $amounts ) {
$amounts['pinch'] = 'Pinch';
}
add_filter( 'recipe_hero_meta_ingredients_amount_default', 'rhs_set_new_amount_default' );
function rhs_set_new_amount_default() {
return 'pinch';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment