PHP - Wordpress Environment Case Logic