Versions Compared

Key

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

...

$transaction_name
(string) The transaction name

wc_maileon_transaction_archiving_duration

Description

wc_maileon_transaction_archiving_duration is a filter applied to all Maileon transaction archiving durations.

Parameters

$duration
(integer) The transaction archiving duration in days. Defaults to 365

wc_maileon_transaction_{$transaction_name}_archiving_duration

Description

wc_maileon_transaction_archiving_duration is a filter applied to all Maileon transaction archiving durations. It can be used to modify the transaction archiving duration for transaction types crteated bye 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

$duration
(integer) The transaction archiving duration in days. Defaults to 365

wc_maileon_transaction_attributes

Description

wc_maileon_transaction_attributes is a filter applied to all Maileon transaction attributes.

Parameters

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

wc_maileon_transaction_{$transaction_name}_attributes

Description

wc_maileon_transaction_{$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[]) The transaction type attributes

wc_maileon_transaction_map_order_products

Description

wc_maileon_transaction_map_order_products is applied to product lines.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_product_item

Description

wc_maileon_transaction_map_order_product_item is applied to a single product line item.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_fees

Description

wc_maileon_transaction_map_order_fees is applied to fees and shipping lines.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_fee_shipping_item

Description

wc_maileon_transaction_map_order_fee_shipping_item is applied to a single shipping line item.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_fee_item

Description

wc_maileon_transaction_map_order_fee_item is applied to a single fee line item.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_discounts

Description

wc_maileon_transaction_map_order_discounts is applied to coupon lines.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_map_order_discount_item

Description

wc_maileon_transaction_map_order_discount_item is applied to a single coupon line item.

Parameters

$content
(array) The mapped attributes

...

wc_maileon_transaction_{$transaction_name}_content

Description

wc_maileon_transaction_{$transaction_name}_content is a filter applied to every Maileon transaction’s content. $transaction_name is one of the following by default:

...