Using wp_update_post( $my_post ) to update post.
Was not using the correct file. Was modifying file outside project folder.