wp_insert_post( ... )

Insert or update a post.

Parameters:
  • $postarr array
  • $wp_error bool
  • $fire_after_hooks bool