Restructure plugin for wordpress compatibility