Versions Compared

Key

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

...

The user creation process can be hooked into vie the wc_maileon_checkout_contact and wc_maileon_create_contact_params WordPress filter hooks.

Contact Creation

wc_maileon_update_contact_checkout

...

doiMailingKey
(string) The doi mailing key

Transactions

wc_maileon_transaction_name

Description

wc_maileon_transaction_name is a filter applied to all Maileon transaction names.

Parameters

$transaction_name
(string) (required) The transaction name

wc_maileon_get_{$transaction_name}_attributes

Description

wc_maileon_get_{$transaction_name}_attributes is a filter applied to all Maileon transaction attribute definitions. It can be used to modify the transaction types created by the plugin. $transaction_name is one of the following by default:

  • wc_completed_order

  • wc_on_hold_order

  • wc_processing_order

  • wc_refunded_order

Parameters

$transaction_attributes
(Maileon\Transactions\AttributeType[]) (required) The transaction type attributes

wc_maileon_map_order_item

Description

wc_maileon_map_order_item is a filter applied to each order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) (required) The mapped attributes

$item
(\WC_Order_Item) (required) The WooCommerce order item

wc_maileon_map_order_item_coupon

Description

wc_maileon_map_order_item_coupon is a filter applied to each coupon type order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) (required) The mapped attributes

$coupon
(\WC_Order_Item_Coupon) (required) The WooCommerce order item

wc_maileon_map_order_item_fee

Description

wc_maileon_map_order_item_fee is a filter applied to each fee type order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) (required) The mapped attributes

$fee
(\WC_Order_Item_Fee) (required) The WooCommerce order item

wc_maileon_map_order_item_product

Description

wc_maileon_map_order_item_product is a filter applied to each product type order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) (required) The mapped attributes

$product_item
(\WC_Order_Item_Product) (required) The WooCommerce order item

$product
(\WC_Product) (required) The WooCommerce product

wc_maileon_map_order_item_shipping

Description

wc_maileon_map_order_item_shipping is a filter applied to each shipping type order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) (required) The mapped attributes

$shipping
(\WC_Order_Item_Shipping) (required) The WooCommerce order item