Languages: English • (Add your language)
Update an existing post with values provided in $_POST. If you passed the post data in an argument, that argument is treated as an array of data keyed appropriately for turning into a post object. If post data is not passed, the $_POST object is used instead.
<?php edit_post($post_data); ?>
<?php edit_post($post_data); ?>
add_action( 'edit_post', 'acme_edit_post' );
function acme_edit_post()
{
// do stuff
}
edit_post() is located in wp-admin/includes/post.php.