Versions Compared

Key

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

...

doiMailingKey
(string) The doi mailing key

Transaction Actions

wc_maileon_transaction_after_{$transaction_name}

...

Description

wc_maileon_transaction_after_{$transaction_name}_transaction is an action running after every Maileon transaction. $transaction_name is one of the following by default:

...

$transaction_name
(string) The transaction name

wc_maileon_

...

transaction_{$transaction_name}_attributes

Description

wc_maileon_gettransaction_{$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:

...

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

wc_maileon_transaction_map_order_

...

{$type}

Description

wc_maileon_transaction_map_order_item{$type} is a filter applied to each order_item in the order_items attribute in the default transaction mapping.

Parameters

$value
(array) The mapped attributes

$item
(\WC_Order_Item) 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) 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) 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
$type is one of the following:

  • line_item

  • tax

  • shipping

  • fee

  • coupon

If this filter returns FALSE or an empty array the line is excluded.

Parameters

$order_item
(array) The mapped attributes

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

$product
(\WC_Product) The WooCommerce product

wc_maileon_

...

transaction_order_

...

line_

...

types

Description

wc_maileon_maptransaction_order_itemline_shippingtype is a filter applied to each shipping type the order _item in the order_items attribute in the default transaction mappingitem types.

Parameters

$value
(array) The mapped attributes$shipping
(\WC_Order_Item_Shipping) The WooCommerce order item types