Tribe__Tickets__Tickets::update_ticket_sent_counter( int $attendee_id )
Update the email sent counter for attendee by increasing it +1.
Contents
Parameters
- $attendee_id
-
(int) (Required) The attendee ID.
Source
File: src/Tribe/Tickets.php
public function update_ticket_sent_counter( $attendee_id ) {
$prev_val = (int) get_post_meta( $attendee_id, $this->attendee_ticket_sent, true );
update_post_meta( $attendee_id, $this->attendee_ticket_sent, $prev_val + 1 );
}
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |