Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Created June 8, 2022 11:15
Show Gist options
  • Save wtmujeebu/f12e17c9ec8dc7adab4c8837f229fce4 to your computer and use it in GitHub Desktop.
Save wtmujeebu/f12e17c9ec8dc7adab4c8837f229fce4 to your computer and use it in GitHub Desktop.
Pass product short description instead of long description to Facebook Product Catalog using - WebToffee Product Catalog Sync for WooCommerce
<?php //Please do not copy this line.
add_filter('wt_facebook_product_description_mode', 'wt_facebook_product_catalog_description_mode');
function wt_facebook_product_catalog_description_mode($mode='long') {
$mode = 'short'; // Available values for the description mode is 'short' and 'long'
return $mode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment