Title: Dynamic Hostname
Author: Takayuki Miyauchi
Published: <strong>मार्च 18, 2014</strong>
Last modified: अप्रिल 26, 2015

---

प्लगिनहरू खोज्नुहोस्

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

यो प्लगिन **वर्डप्रेसका ३ प्रमुख नवीनतम रिलीजहरूसँग परीक्षण गरिएको छैन**। यो अब 
सम्भवतः व्यवस्थित वा समर्थन नभएको हुन सक्छ र वर्डप्रेसका नयाँ संस्करणहरूमा प्रयोग
गर्दा अनुकूलता सम्बन्धी समस्या हुन सक्छ।

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

# Dynamic Hostname

 [Takayuki Miyauchi](https://profiles.wordpress.org/miyauchi/) द्वारा

[डाउनलोड गर्नुहोस्](https://downloads.wordpress.org/plugin/dynamic-hostname.0.4.2.zip)

 * [विवरण](https://ne.wordpress.org/plugins/dynamic-hostname/#description)
 * [समीक्षाहरू](https://ne.wordpress.org/plugins/dynamic-hostname/#reviews)
 *  [स्थापना](https://ne.wordpress.org/plugins/dynamic-hostname/#installation)
 * [विकास](https://ne.wordpress.org/plugins/dynamic-hostname/#developers)

 [सहायता](https://wordpress.org/support/plugin/dynamic-hostname/)

## विवरण

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

## स्थापना

#### Manual Installation

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

## समीक्षाहरू

यस प्लगिनको लागि कुनै समीक्षाहरू छैनन्।

## योगदानकर्ता र डेभलपरहरू

“Dynamic Hostname” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान
गरेका छन्।

योगदानकर्ताहरू

 *   [ 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/)

[“Dynamic Hostname” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्](https://translate.wordpress.org/projects/wp-plugins/dynamic-hostname)

### विकासमा रुचि छ?

[आरएसएस](https://plugins.trac.wordpress.org/log/dynamic-hostname/?limit=100&mode=stop_on_copy&format=rss)
द्वारा [कोड ब्राउज गर्नुहोस्](https://plugins.trac.wordpress.org/browser/dynamic-hostname/),
[एसभीएन रिपजिटरी](https://plugins.svn.wordpress.org/dynamic-hostname/) हेर्नुहोस्,
वा [विकास लग](https://plugins.trac.wordpress.org/log/dynamic-hostname/) को सदस्यता
लिनुहोस्।

## चेन्जलग

#### 0.4.1

 * Tested up to 4.1

#### 0.1.0

 * First release

## मेटा

 *  संस्करण **0.4.2**
 *  पछिल्लो अपडेट **11 वर्ष अघि**
 *  सक्रिय स्थापना **300+**
 *  वर्डप्रेस संस्करण ** 3.8 वा उच्च **
 *  जाँच गरिएको **4.2.39**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/dynamic-hostname/)
 * ट्यागहरू
 * [hostname](https://ne.wordpress.org/plugins/tags/hostname/)[site_url](https://ne.wordpress.org/plugins/tags/site_url/)
 *  [उन्नत दृश्य](https://ne.wordpress.org/plugins/dynamic-hostname/advanced/)

## रेटिङ्गहरू

अहिलेसम्म कुनै समीक्षा पेस गरिएको छैन।

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

[See all reviews](https://wordpress.org/support/plugin/dynamic-hostname/reviews/)

## योगदानकर्ताहरू

 *   [ 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/)

## सहायता

केही भन्नु छ? सहयोग चाहियो?

 [सहायता फोरम हेर्नुहोस्](https://wordpress.org/support/plugin/dynamic-hostname/)