you can modify template file at wp-content/plugins/events-manager/templates/forms/event/bookings.php
to use templates – http://wp-events-plugin.com/documentation/using-template-files/
Thread Starter
thor86
(@thor86)
Hi,
Thank you aglonwl!
It works like a charm!
Have a good weekend!
Hi, This is exactly what I’ve been trying to work out for weeks! I’ve tried making the input checked as default but it didn’t seem to work… Which bits did you change within wp-content/plugins/events-manager/templates/forms/event/bookings.php for it to work?
Thanks!!
Alex
Hi, I changed line 5 –
<input id=”event-rsvp” name=’event_rsvp’ value=’1′ type=’checkbox’ checked=’checked’ <?php echo ($EM_Event->event_rsvp) ? ‘checked=”checked”‘ : ”; ?> />
to this
<input id=”event-rsvp” name=’event_rsvp’ value=’1′ type=’checkbox’ checked=’checked’ />
and it seems to be working! Is this the best way?
Thanks
Alex
*my bad… that didn’t work, I refreshed a page with bookings enabled! Any help would be much appreciated! Thanks 🙂
Probably you should add something like
$EM_Event->event_rsvp = 1;
to the top of your file.