/** * Updates an existing post * * @access public * @return int The ID of the post if the post is successfully updated in the database. Otherwise returns 0. */ public function update($postData, $postId) { // Set the post ID $postData['ID'] = $postID; // Update the post return WP::wpUpdatePost($postData); }