Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

$product
(\WC_Product) The original WooCommerce product

Description

wc_maileon_webhook_related_productsis a filter applied to the output of the related products JSON endpoint.

Parameters

$data
(array) The mapped data

$product
(\WC_Product) The WooCommerce product we are mapping related products for

$upsells
(\WC_Product[]) The upsell WooCommerce products

$cross_sells
(\WC_Product[]) The cross-sell WooCommerce products