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

Create new event PHP

$
0
0

Replies: 0

Hi,
is it possible to somehow create an event using PHP?

$my_post = array(
		  'post_title'    => $title,
		  'post_content'  => $tcontent,
		  'post_status'   => 'publish',
		  'post_author'   => $author_id,
		  'post_category' => array($category_id)
		);
		
		$post_id = wp_insert_post( $my_post );

If I have such a code … What needs to be added to create an event?

Thanks.

  • This topic was modified 1 hour, 44 minutes ago by miro382.

Viewing all articles
Browse latest Browse all 59525

Trending Articles