Title: Dynamic Hostname
Author: Takayuki Miyauchi
Published: <strong>18. März 2014</strong>
Last modified: 26. April 2015

---

Plugins suchen

![](https://ps.w.org/dynamic-hostname/assets/banner-772x250.png?rev=877017)

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/dynamic-hostname_1b95bb.svg)

# Dynamic Hostname

 Von [Takayuki Miyauchi](https://profiles.wordpress.org/miyauchi/)

[Herunterladen](https://downloads.wordpress.org/plugin/dynamic-hostname.0.4.2.zip)

 * [Details](https://de.wordpress.org/plugins/dynamic-hostname/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/dynamic-hostname/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/dynamic-hostname/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/dynamic-hostname/#developers)

 [Support](https://wordpress.org/support/plugin/dynamic-hostname/)

## Beschreibung

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

## Installation

#### Manual Installation

 1. Upload the entire `/dynamic-hostname` directory to the `/wp-content/plugins/` directory.
 2. Activate through the ‚Plugins‘ menu in WordPress.

## Rezensionen

Für dieses Plugin gibt es keine Rezensionen.

## Mitwirkende und Entwickler

„Dynamic Hostname“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ DigitalCube Inc. ](https://profiles.wordpress.org/megumithemes/)
 *   [ tekapo ](https://profiles.wordpress.org/tekapo/)
 *   [ Takashi Kitajima ](https://profiles.wordpress.org/inc2734/)
 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

[Übersetze „Dynamic Hostname“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/dynamic-hostname)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/dynamic-hostname/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/dynamic-hostname/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/dynamic-hostname/)
per [RSS](https://plugins.trac.wordpress.org/log/dynamic-hostname/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 0.4.1

 * Tested up to 4.1

#### 0.1.0

 * First release

## Meta

 *  Version **0.4.2**
 *  Zuletzt aktualisiert **vor 11 Jahren**
 *  Aktive Installationen **300+**
 *  WordPress-Version ** 3.8 oder höher **
 *  Getestet bis **4.2.39**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/dynamic-hostname/)
 * Schlagwörter
 * [hostname](https://de.wordpress.org/plugins/tags/hostname/)[site_url](https://de.wordpress.org/plugins/tags/site_url/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/dynamic-hostname/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Your review](https://wordpress.org/support/plugin/dynamic-hostname/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/dynamic-hostname/reviews/)

## Mitwirkende

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ DigitalCube Inc. ](https://profiles.wordpress.org/megumithemes/)
 *   [ tekapo ](https://profiles.wordpress.org/tekapo/)
 *   [ Takashi Kitajima ](https://profiles.wordpress.org/inc2734/)
 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/dynamic-hostname/)