Hello.
I've added my own fields in booking-fields.php, later validated in the hook em_booking_add. The code looks like:
Booking-fields.php, The new field
<p>
<label for='city'>City *</label>
<input type="text" name="city" id="city" class="input" <?php if(!empty($_REQUEST['city'])) echo "value='{$_REQUEST['city']}'"; ?> />
</p>
Functions.php, The hook
global $EM_Notices;
if( ! empty( $_REQUEST['city'] ) ){
$EM_Booking->booking_meta['registration']['city'] = wp_kses( $_REQUEST['city'], array() );
} else {
$registration = false;
$EM_Notices->add_error( '<strong>ERROR</strong>: City.' );
}
If the email is failing, this error also comes up (if the field is empty), but nothing happends if the email is correct.
Also doesnt give a "Succes" message.
What's wrong?
http://wordpress.org/extend/plugins/events-manager/
[ Please do not bump, that's not permitted here. ]