Reply To: Make sending emails and collecting phone numbers optional

#1569
Stephen Sherrard
Keymaster

Also, for a quick fix to make phone optional, you can edit the class-pta_sus_public.php file and remove line 91 that looks like this:

|| empty($_POST[‘signup_phone’])

delete that entire line, and you shouldn’t get an error message if you leave the phone field blank.

If you don’t want to send out the sign-up confirmation emails, which is also copied to the event chair emails, you can delete lines 156-158 in the same file, which look like this:

if ($emails->send_mail($wpdb->insert_id) === false) {
$this->messages .= apply_filters( ‘pta_sus_public_output’, __(‘ERROR SENDING EMAIL’, ‘pta_volunteer_sus’), ’email_send_error_message’ );
}