Action: mt_save_custom_field

do_action( 'mt_save_custom_field', $payment_id, $event_id, $name, $sanitized, $purchased )

Execute a custom action when saving custom field data.

Parameters:
Name Type Description
$payment_id int

Payment ID for this purchase.

$event_id int

Event tickets purchased for.

$name string

Custom field key being saved.

$sanitized array

Data submitted by user post-sanitization.

$purchased array

Full purchase data.

Source: