thoughtis / cata-blocks

Block Editor components for use with the Cata theme.
GNU General Public License v3.0
1 stars 0 forks source link

Bring back filter for URLs in Shopify Block #148

Closed douglas-johnson closed 4 months ago

douglas-johnson commented 4 months ago

In the WooCommerce-based Products block we had the filter cata_product_block_link so that sites using Cata Blocks could update the URLs. It was specifically intended to add UTMs per-site. Here it is in verion 0.8.1

https://github.com/thoughtis/cata-blocks/blob/0.8.1/blocks/products/includes/renderer.php#L45C37-L45C60

It looks like cata_product_block_link is still in place on the sites using Cata Blocks, so searching for it in the ThoughtNet repository should bring up the relevant code. If the filter is brought back with the same name, ThoughtNet should work as-is.

It could also be applied to Thought Catalog.