Created
March 21, 2015 23:11
-
-
Save bryceadams/497c25413d1ddbd584f7 to your computer and use it in GitHub Desktop.
Recipe Hero - add an ingredient amount and set as the default
This file contains hidden or 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
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