1. Home
  2. Knowledge Base
  3. Tasty Recipes
  4. Customizing Tasty Recipes
  5. Filter: Add an Additional “Rate this Recipe” Quick Link

Filter: Add an Additional “Rate this Recipe” Quick Link

If you're already using the Tasty Recipes Quick Links option, now you (or your developer) can add a third one to your recipe posts (as of Tasty Recipes 3.6.3)!

***Before doing this, make sure that you have access to your site's files via FTP (the editor in WordPress is not sufficient in case problems arise) and that you are comfortable with editing your functions.php file. Any minor error in the functions.php file can result in the “white screen of death,” which is easily fixed via FTP but is difficult to fix otherwise (and a nuisance as your site will be unavailable until fixed).***

add_filter(
	'tasty_recipes_quick_links',
	function( $links, $post ) {
		$links[] = '<a href="#">Rate This Recipe</a>';
		return $links;
	},
	10,
	2
); 

After applying that filter to your functions.php file, your new Quick Link should appear at the top of your recipe post like this:

'Rate this Recipe' quick link appears next to the 'Jump to Recipe' and the 'Print Recipe' buttons.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support