[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Rank Math SEO Plugin] Recipe Markup


Nick_Luvera
 Share

Recommended Posts

  • Support

Hello,

Thank you for contacting MyThemeShop today.

You can use a plugin filter to add/change the output of the snippet data. Below is a syntax of this filter:

add_filter( 'rank_math/snippet/rich_snippet_recipe_entity', function( $recipe ) {
	// You can modify/add recipe details here by extending the $recipe variable
	return $recipe;
});

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

To change the Recipe snippet data, please add the filter code in your active theme's functions.php. The filter code will only change the output generated by the Rank Math plugin, so you'll have to manually add the array of recipes to $recipes variable used in the filter.

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...