Created
June 8, 2022 11:15
-
-
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
This file contains 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 //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