Created
June 17, 2026 12:38
-
-
Save xlplugins/69e7d964261c43f126eb8277bb95fef4 to your computer and use it in GitHub Desktop.
Do not send content_id for specific product
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
| add_filter( 'wffn_get_product_content_id', 'fk_skip_fb_content_id', 10, 2 ); | |
| add_filter( 'wfocu_get_product_content_id', 'fk_skip_fb_content_id', 10, 2 ); | |
| function fk_skip_fb_content_id( $content_id, $product_id ) { | |
| $excluded_ids = array( 1469 ); | |
| return in_array( (int) $product_id, $excluded_ids, true ) ? '' : $content_id; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment