backend code for wordpress