I am inserting posts programmatically using wp_insert_post. A typical call would look like this:
$news_item = array ( 'post_title' => $titleField, 'post_content' => $retrieve_result['content'], 'post_status' => 'pending', 'post_author' => $user->ID, 'post_type' => 'post', 'post_date_gmt' => $post_date_gmt ); $post_id = wp_insert_post( $news_item );
My question is about the parameter post_date_gmt, is this a correct use? Should I use post_date instead? What value is displayed on the screen? I need explanation of both. Documentation does not offer much.