added privilege support for wordpress