Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('em_booking_output_placeholder','my_em_custom_booking_phone',100,3);
- function my_em_custom_booking_phone($replace, $EM_Booking, $result){
- if( $result === '#_TICKETBOOKING_ATTENDEE_DATA' || $result === '#_TICKETBOOKINGATTENDEEDATA' ){
- $replace = '';
- $Attendees = EM_Attendees_Form::get_booking_attendees($EM_Booking);
- $EM_Tickets_Bookings = $EM_Booking->get_tickets_bookings();
- foreach( $EM_Tickets_Bookings->tickets_bookings as $EM_Ticket_Booking ){
- foreach( $Attendees[$EM_Ticket_Booking->ticket_id] as $attendee_title => $attendee_data ){
- foreach( $attendee_data as $field_label => $field_value){
- $replace .= "\r\n". $field_label .': ';
- $replace .= $field_value;
- }
- }
- }
- }
- return $replace;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement