remove unused fields from wp data structure