Created
October 21, 2026 14:30
-
-
Save xlplugins/526ef729ae02941d46e1fa8378b3a25c to your computer and use it in GitHub Desktop.
change product ID's
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
| function fk_merchant_center_id( $content_id, $product_id ) { | |
| $map = array( | |
| 11487 => 'KLW', // KLOW | |
| 12092 => 'ss', // SS-31 | |
| 7466 => '5157472594', // Glutathione | |
| ); | |
| return isset( $map[ $product_id ] ) ? $map[ $product_id ] : $content_id; | |
| } | |
| add_filter( 'wffn_get_product_content_id', 'fk_merchant_center_id', 10, 2 ); // purchase + sitewide events | |
| add_filter( 'wfocu_get_product_content_id', 'fk_merchant_center_id', 10, 2 ); // upsell purchases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment