Plugin Author
Brecht
(@brechtvds)
Hi there,
As far as I’m aware Google only uses recipeCategory and recipeCuisine, both of which are covered by the default Courses and Cuisines taxonomies.
There are plugin hooks available. What are you looking for specifically?
Brecht
Hi Brechet,
Google typically uses the schema.org vocabulary. http://schema.org/Recipe. and it accepts in structure data testing tool.
I am not specific to any particular one but just in case if i want to extend the functionality by using any of the above markup, let say “contributor” (not author), how do i do that?
Plugin Author
Brecht
(@brechtvds)
You can use the wprm_recipe_metadata plugin hook to alter the metadata. Something like this, for example:
function wprm_metadata( $metadata, $recipe ) {
// Make changes to the $metadata
return $metadata;
}
add_filter( 'wprm_recipe_metadata', 'wprm_metadata', 10, 2 );
Thanks Brecht.
That is 2nd part of my question, is there a list of custom hook, filter and functions?
regards
Faisal
Plugin Author
Brecht
(@brechtvds)
We don’t have a list of the available hooks at the moment. Those are annoying to keep up to date and it’s just easier to tell what the hook is if someone tells us what they are trying to change, like the metadata example.
If the hook doesn’t exist we can add it then as well, instead of someone just being disappointed that it’s not in the list.
What are you trying to change?
Not trying to change but trying to add instead. Like mentioned above, I probably want to have a “contributor” tax with relevant schema added.
Plugin Author
Brecht
(@brechtvds)
Right. You can use the above code for that.