Filter: mt_cart_custom_fields

apply_filters( 'mt_cart_custom_fields', $fields, $cart, $gateway ) → {array}

Filter cart custom fields when generating the shopping cart.

Parameters:
Name Type Description
$fields array

Array of defined custom fields. Initialized as empty array.

$cart array

Shopping cart contents.

$gateway string

Gateway in use.

Source:
Returns:
Type
array

apply_filters( 'mt_cart_custom_fields', $fields, $empty, $context ) → {array}

Filter cart custom fields when generating template tags.

Parameters:
Name Type Description
$fields array

Array of defined custom fields. Initialized as empty array.

$empty array

Empty array; not used in this context.

$context string

Rendering context.

Source:
Returns:
Type
array