eo_delete_booking_ticket_meta
since 1.5.0
Pro
eo_delete_booking_ticket_meta( $booking_ticket_id, $key, $value = '', $delete_all = false )
Remove metadata matching criteria from a booking ticket.
You can match based on the key, or key and value. Removing based on key and
value, will keep from removing duplicate metadata with the same key. It also
allows removing all metadata matching key, if needed.
Parameters
int
|
$booking_ticket_id |
Booking ticket ID.
|
string
|
$key |
Metadata key.
|
mixed
|
$value = '' |
Optional. Metadata value.
|
bool
|
$delete_all = false |
Optional, default is false. If true, delete matching metadata entries for all tickets, ignoring the booking ticket id.
|
Return value
bool
|
False for failure. True for success.
|
Changelog