Tribe__Tickets__Tickets::allow_resending_email( WP_Post|null $ticket = null, array|null $attendee = null )
Handles if email sending is allowed.
Contents
Parameters
- $ticket
-
(WP_Post|null) (Optional) The ticket post object if available, otherwise null.
Default value: null
- $attendee
-
(array|null) (Optional) The attendee information if available, otherwise null. @return boolean
Default value: null
Source
File: src/Tribe/Tickets.php
public function allow_resending_email( $ticket = null, $attendee = null ) {
/**
*
* Shared filter between Woo, EDD, and the default logic.
* This filter allows the admin to control the re-send email option when an attendee's email is updated per a payment type (EDD, Woo, etc).
* True means allow email resend, false means disallow email resend.
*
* @since 5.2.1
*
* @param WP_Post|null $ticket The ticket post object if available, otherwise null.
* @param array|null $attendee The attendee information if available, otherwise null.
*
*/
return (bool) apply_filters( 'tribe_tickets_my_tickets_allow_email_resend_on_attendee_email_update', true, $ticket, $attendee );
}
Changelog
| Version | Description |
|---|---|
| 5.2.1 | Introduced. |