diff --git a/camptix.php b/camptix.php
index ab85a96..50bd835 100644
a
|
b
|
class CampTix_Plugin { |
3802 | 3802 | $rows[] = array( __( 'Last Name', 'camptix' ), esc_html( get_post_meta( $post->ID, 'tix_last_name', true ) ) ); |
3803 | 3803 | $rows[] = array( __( 'E-mail', 'camptix' ), esc_html( get_post_meta( $post->ID, 'tix_email', true ) ) ); |
3804 | 3804 | $rows[] = array( __( 'Ticket', 'camptix' ), sprintf( '<a href="%s">%s</a>', get_edit_post_link( $ticket->ID ), $ticket->post_title ) ); |
| 3805 | |
| 3806 | $rows = apply_filters( 'camptix_metabox_attendee_info_additional_rows', $rows, $post ); |
| 3807 | |
3805 | 3808 | $rows[] = array( __( 'Edit Token', 'camptix' ), sprintf( '<a href="%s">%s</a>', $this->get_edit_attendee_link( $post->ID, $edit_token ), $edit_token ) ); |
3806 | 3809 | $rows[] = array( __( 'Access Token', 'camptix' ), sprintf( '<a href="%s">%s</a>', $this->get_access_tickets_link( $access_token ), $access_token ) ); |
3807 | 3810 | |
… |
… |
class CampTix_Plugin { |
4082 | 4085 | 'tix_payment_method', |
4083 | 4086 | 'tix_privacy', |
4084 | 4087 | ); |
| 4088 | |
| 4089 | $search_meta_fields = apply_filters( 'camptix_save_attendee_post_add_search_meta', $search_meta_fields ); |
| 4090 | |
4085 | 4091 | $data = array( 'timestamp' => time() ); |
4086 | 4092 | |
4087 | 4093 | foreach ( $search_meta_fields as $key ) |
… |
… |
class CampTix_Plugin { |
4746 | 4752 | <?php $value = isset( $this->form_data['tix_attendee_info'][$i]['last_name'] ) ? $this->form_data['tix_attendee_info'][$i]['last_name'] : ''; ?> |
4747 | 4753 | <td class="tix-right"><input name="tix_attendee_info[<?php echo $i; ?>][last_name]" type="text" value="<?php echo esc_attr( $value ); ?>" /></td> |
4748 | 4754 | </tr> |
| 4755 | <?php do_action( 'camptix_attendee_form_additional_info', $this->form_data, $i, $this->tickets_selected_count ); ?> |
4749 | 4756 | <tr class="tix-row-email"> |
4750 | 4757 | <td class="tix-required tix-left"><?php _e( 'E-mail', 'camptix' ); ?> <span class="tix-required-star">*</span></td> |
4751 | 4758 | <?php $value = isset( $this->form_data['tix_attendee_info'][$i]['email'] ) ? $this->form_data['tix_attendee_info'][$i]['email'] : ''; ?> |
… |
… |
class CampTix_Plugin { |
5065 | 5072 | update_post_meta( $attendee->ID, 'tix_last_name', sanitize_text_field( $new_ticket_info['last_name'] ) ); |
5066 | 5073 | update_post_meta( $attendee->ID, 'tix_email', sanitize_email( $new_ticket_info['email'] ) ); |
5067 | 5074 | update_post_meta( $attendee->ID, 'tix_questions', $new_answers ); |
| 5075 | |
| 5076 | do_action( 'camptix_form_edit_attendee_update_post_meta', $new_ticket_info, $attendee ); |
5068 | 5077 | |
5069 | 5078 | wp_update_post( $attendee ); // triggers save_attendee |
5070 | 5079 | |
… |
… |
class CampTix_Plugin { |
5096 | 5105 | <td class="tix-required tix-left"><?php _e( 'Last Name', 'camptix' ); ?> <span class="tix-required-star">*</span></td> |
5097 | 5106 | <td class="tix-right"><input name="tix_ticket_info[last_name]" type="text" value="<?php echo esc_attr( $ticket_info['last_name'] ); ?>" /></td> |
5098 | 5107 | </tr> |
| 5108 | <?php do_action( 'camptix_form_edit_attendee_additional_info', $attendee ); ?> |
5099 | 5109 | <tr> |
5100 | 5110 | <td class="tix-required tix-left"><?php _e( 'E-mail', 'camptix' ); ?> <span class="tix-required-star">*</span></td> |
5101 | 5111 | <td class="tix-right"><input name="tix_ticket_info[email]" type="text" value="<?php echo esc_attr( $ticket_info['email'] ); ?>" /></td> |
… |
… |
class CampTix_Plugin { |
5785 | 5795 | $attendee->email = $attendee_info['email']; |
5786 | 5796 | $attendee->answers = $answers; |
5787 | 5797 | |
| 5798 | $attendee = apply_filters( 'camptix_form_register_complete_attendee_object', $attendee, $attendee_info ); |
| 5799 | |
5788 | 5800 | if ( isset( $_POST['tix_receipt_email'] ) && $_POST['tix_receipt_email'] == $i ) |
5789 | 5801 | $receipt_email = $attendee->email; |
5790 | 5802 | |
… |
… |
class CampTix_Plugin { |
5844 | 5856 | update_post_meta( $post_id, 'tix_email', $attendee->email ); |
5845 | 5857 | update_post_meta( $post_id, 'tix_tickets_selected', $this->tickets_selected ); |
5846 | 5858 | update_post_meta( $post_id, 'tix_receipt_email', $receipt_email ); |
| 5859 | |
| 5860 | do_action( 'camptix_checkout_update_post_meta', $post_id, $attendee ); |
5847 | 5861 | |
5848 | 5862 | // Cash |
5849 | 5863 | update_post_meta( $post_id, 'tix_order_total', (float) $this->order['total'] ); |