Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created October 21, 2026 14:30
Show Gist options
  • Select an option

  • Save xlplugins/526ef729ae02941d46e1fa8378b3a25c to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/526ef729ae02941d46e1fa8378b3a25c to your computer and use it in GitHub Desktop.
change product ID's
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