Core Function
View Source on Trac ↗ edit_post()
edit_post( mixed $post_data = null ) Updates an existing post with values provided in `$_POST`.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | null) $post_data Optional. The array of post data to process. Defaults to the `$_POST` superglobal. Required |
Return Value
(int)
Post ID.
Function Information
Since Version
1.5.0
Source File
wp-admin/includes/post.php
Advertisement