edit_post


edit_post ( $post_data = null )

Parameters:
  • (array) post_data Optional. Defaults to the $_POST global.
Returns:
  • (int) Post ID.
Defined at:

Description

Update 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.

Related Functions

get_post, redirect_post, get_posts, next_post, edit_post_link

Top Google Results

User discussions

wpseek mobile