eo_update_booking_ticket_meta
since 1.10.0
Pro
eo_update_booking_ticket_meta( $booking_ticket_id, $key, $value, $prev_value = '' )
Update booking ticket meta field.
Use the $prev_value parameter to differentiate between meta fields with the
same key and booking ticket ID. This may be used in place of eo_add_booking_ticket_meta() function.
It is strongly recommended that you prefix your keys with and underscore.
Parameters
int
|
$booking_ticket_id |
Booking ticket ID.
|
string
|
$key |
Metadata key.
|
mixed
|
$value |
Metadata value.
|
mixed
|
$prev_value = '' |
Optional. Previous value to check before removing.
|
Return value
bool
|
False on failure, true if success.
|
Changelog