Last active
November 26, 2024 11:53
-
-
Save webtoffee-git/d0b2a8a30c8f51354b6b852f5fc782cc to your computer and use it in GitHub Desktop.
Filter to add conversion link - By WebToffee (Product Feed for WooCommerce By WebToffee)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //Do not add this line of code | |
| add_filter('wt_feed_filter_product_link','wt_feed_filter_product_link_utm', 10, 2); | |
| function wt_feed_filter_product_link_utm($link, $product){ | |
| return $link.'?utm_source=summer-sale&utm_medium=feed&utm_campaign=summer-sale'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment