/** * When a post is deleted, delete its map assignments * */ function deleted_post($postid) { Mappress_Map::delete_post_map($postid); }