Default start end end times

This topic contains 2 replies, has 2 voices, and was last updated by  backroads 9 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19633

    Hi Stephen,

    is there a way to define default start end end times that will be shown in the form when a new event is added?

    I’ve searched both the web and the support forum but couldn’t find anything related.

    Cheers
    Lars

    backroads
    #19640

    Hi Lars,

    Yes, there’s a hook hook triggered in eo_get_the_schedule() (http://codex.wp-event-organiser.com/hook-eventorganiser_get_event_schedule.html) – it filters the event’s schedule information: https://github.com/stephenharris/Event-Organiser/blob/master/includes/event.php#L384 (which includes ‘start’ and ‘end’ as keys – and datetime objects as values).

    You could use that filter to change the ‘start’, ‘end’ (but make sure you’re only on the ‘add new event’ screen).

    Stephen Harris
    #19650

    Thank you very much, that‘s exactly what I’ve been looking for.

    backroads
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.