Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created December 9, 2024 05:42
Show Gist options
  • Select an option

  • Save webtoffee-git/5faa7bbe2ff9d877fc6d2fe292de5e71 to your computer and use it in GitHub Desktop.

Select an option

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
<?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