Filter: Custom block compatibility

Sometimes, custom blocks store their data in block attributes. By default, Tasty Links aren’t applied to block attributes. Starting with Tasty Links v1.0.1, we’ve included the option to use a filter to allow Tasty Links to be applied to a rendered block.

Here’s an example of the code you can use to add compatibility with your own custom blocks:

add_filter(
	'tasty_links_enabled_rendered_blocks',
	function( $blocks ) {
		$blocks[] = 'your-plugin/your-block';
		return $blocks;
	}
);

Ready to grow your site with less stress?

Join 12,000+ creators using WP Tasty. 14-day money-back guarantee.

Get Started Now

Don't forget your purchase!

Complete Purchase