Created
December 9, 2024 05:42
-
-
Save webtoffee-git/5faa7bbe2ff9d877fc6d2fe292de5e71 to your computer and use it in GitHub Desktop.
Alter Facebook catalog feed product ID to only include the post ID instead of SKU_ID - WooCommerce Product feed 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 copy this line of code | |
| add_filter('wt_feed_facebook_product_id', 'wt_feed_facebook_product_id', 10, 3); | |
| function wt_feed_facebook_product_id($fb_retailer_id, $product, $form_data) { | |
| return $product->get_id(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment