WordPress File wp-admin/includes/post.php

edit_post()

Updates an existing post with values provided in $_POST.

has_meta()

Returns meta data for the given post ID.