PHP – Adding an Event

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18509

    Is there a predefined PHP function for adding an event to the Calendar? Or do I just add a new post with the EO post-type and all the various custom-fields?

    Dave Navarro
    #18510

    You can use eo_insert_event() (see codex).

    This is effectively a wrapper for wp_insert_post() but handles the event dates too.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 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.