Code from my Wordpress class