• Resolved sbarrera86

    (@sbarrera86)


    I would like to export a list of only future events. How would I go about doing that? I suspect it may be handled in the Exporter.php file, but I am not sure where to go from there. Any input would be much appreciated.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author s-hinse

    (@s-hinse)

    Hi sbarrera86,
    you are on the right track. You need to change L55 in Exporter.php to
    $events = $wpdb->get_results( 'SELECT * FROM ' . $table.' where event_start_date >= CURDATE() ', ARRAY_A );
    to get only future events.
    But your changes will be overwritten, if there is an update for the plugin, so you might consider renaming it to your own thing.

    • This reply was modified 5 years, 8 months ago by s-hinse.
    Thread Starter sbarrera86

    (@sbarrera86)

    Thank you for your prompt response. This works perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Export Future Events’ is closed to new replies.