We'll create fresh WordPress site with Dynamic Hostname installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin changes dynamically and automatically the host name which WordPress uses. For example, when you run WordPress on your different servers, for production, development or staging, the host name will be changed dynamically and each site won’t have broken links. It’s very useful when you use it with Vagrant Cloud.
This plugin uses the filter hooks below to replace the host name in URL.
$hooks = array(
"home_url",
"site_url",
"stylesheet_directory_uri",
"template_directory_uri",
"plugins_url",
"wp_get_attachment_url",
"theme_mod_header_image",
"theme_mod_background_image",
"the_content",
"upload_dir",
"widget_text",
);
Those hooks also have their own filter hooks, so you can customize with other plugins you are using, etc.
add_filter('dynamic_hostname_filters' function($hooks){
$hooks[] = 'some_filter_hook';
return $hooks;
});