added logic in wordpress config for dev/prod