wp_update_post( ... )

Updates a post with new post data.

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