Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

tribe_create_event() — format date

$
0
0

Replies: 0

Hello,
As per your documentation, the args array accepts EventStartDate date string (required) – Start date of the Event.
but you didn’t specified the format of the string and considerind Date Time format…. it’s difficult…

I’m testing with :

$args = array(
			'ID'             => $id,
			'post_content'   => $events['longDescription']['fr'],
			'post_title'     => $events['title']['fr'],
			'post_excerpt'   => $events['description']['fr'],
			'post_status'    => 'publish',
			'post_type'      => 'tribe_events',
			'EventStartDate' => '2019/09/24 06:00:00',
			'comment_status' => 'closed',
			'ping_status'    => 'closed',
			'meta_input'     => [
				'EventURL'     => $events['conditions']['fr'],
				'oa_event_uid' => $events['uid'],
			],
		);

and date in event created is on day date … not on 2019/09/24…


Viewing all articles
Browse latest Browse all 59525

Trending Articles