I created a wordpress site and name hostname as x.co.uk, x.com, x.in...
In wp-option table the site and home url as x.co.uk. I want dynamically for loading other host name also.
So dynamically set WP_SITEURL, WP_HOME, i override the wp-config as
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] );
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] );
but when i call home_url() it always return x.co.uk hostname
Thanks Advance