I config the multi-language setting dynamically using the locale
filter. Which fetch the sub-domain name to determine the language.
function load_cu
You can override the admin settings in the wp-config.php file. So if you want something dynamic, the following should work:
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
This needs to added before the line
require_once(ABSPATH . 'wp-settings.php');
or else you may have problems with some content using the wrong URLs, especially theme files.