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.