Tribe__Tickets__Attendee_Repository::trigger_update_actions( array $attendee_data )
Trigger the update actions needed based on the provider.
Contents
Parameters
- $attendee_data
-
(array) (Required) List of attendee data to be saved.
Source
File: src/Tribe/Attendee_Repository.php
public function trigger_update_actions( $attendee_data ) {
/**
* Allow hooking into after the attendee has been updated.
*
* @since 5.1.0
*
* @param array $attendee_data List of attendee data to be saved.
* @param Tribe__Tickets__Attendee_Repository $repository The current repository object.
*/
do_action( 'tribe_tickets_attendee_repository_update_attendee_after_update', $attendee_data, $this );
// Maybe run filter if using a provider key name.
if ( $this->key_name ) {
/**
* Allow hooking into after the attendee has been updated by provider key name.
*
* @since 5.1.0
*
* @param array $attendee_data List of attendee data to be saved.
* @param Tribe__Tickets__Attendee_Repository $repository The current repository object.
*/
do_action( "tribe_tickets_attendee_repository_update_attendee_after_update_{$this->key_name}", $attendee_data, $this );
}
// Maybe send the attendee email.
$this->maybe_send_attendee_email( $attendee_data['attendee_id'], $attendee_data );
// Clear the attendee cache if post_id is provided.
if ( ! empty( $this->updates['post_id'] ) && $this->attendee_provider ) {
$this->attendee_provider->clear_attendees_cache( $this->updates['post_id'] );
}
}
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |