WordPress All-In-One Event Calendar: Show Upcoming Events start date only

I have tried to get only event date using this plugin.

  global $ai1ec_events_helper, $ai1ec_calendar_helper;

  // get current local time
  $bits = $ai1ec_events_helper->gmgetdate( $ai1ec_events_helper->gmt_to_local( time() ) );

// Tomorrow
  $start_time       = gmmktime( 0, 0, 0, $bits['mon'], $bits['mday'] + 1, $bits['year'] );

    // Five years from tomorrow
 $end_time         = gmmktime( 0, 0, 0, 0, 0, $bits['year'] + 5 );

    // Filter events by category, tags, or post ids
   $filter           = array();

  $include_spanning = false;

  $limit_events     = 0;

   $events = $ai1ec_calendar_helper->get_events_between(
    $start_time,
    $end_time,
    $filter,
    $include_spanning
 );
  echo var_dumb($ai1ec_events_helper);
 print_r($events);

I tried above code for this, but $ai1ec_events_helper return NULL.

Read more here: WordPress All-In-One Event Calendar: Show Upcoming Events start date only

Leave a Reply

Your email address will not be published. Required fields are marked *