edit_post
edit_post ( $post_data = null )
Parameters:- (array|null) post_data Optional. The array of post data to process. Defaults to the `$_POST` superglobal.
Returns:Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Updates an existing post with values provided in `$_POST`.If post data is passed as an argument, it is treated as an array of data
keyed appropriately for turning into a post object.
If post data is not passed, the `$_POST` global variable is used instead.