WordPress plugin intelligence profile

Dynamic Hostname

Set hostname dynamically for the development.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version0.4.2
WordPress coverageTested up to WordPress 4.2
Minimum stackWP 3.8 · PHP —
Directory statusactive
Last directory update26 Apr 201511y ago
Active installations200Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Dynamic Hostname version 0.4.2 as active, updated 11y ago and tested up to WordPress 4.2.

Overview

About this plugin

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.

Some features

  • Temporarily changes the host name to the current host name ($_SERVER[‘HTTP_HOST’]).
  • Also replaces the host name of the links to the contents and the images in the same site.
  • The host name included in the contents on the development server will be changed to the one for the production server. (You don’t need to replace the host name in the database when you move it to the production server.)
  • The host name in the editor window is temporarily replaced with the current host name, so when you edit some on the development server, you never have broken links.

Hooks to use for replacing

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; });

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • site url
  • vagrant cloud
  • wp home
  • hostname
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress 3.8 · PHP not listed
Update activity26 Apr 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.