Linux 软件免费装
Banner图

Dynamic Hostname

开发者 miyauchi
megumithemes
tekapo
inc2734
toro_unit
更新时间 2015年4月26日 21:07
PHP版本: 3.8 及以上
WordPress版本: 4.2
版权: GPLv2
版权网址: 版权信息

标签

wp_home site_url hostname vagrant cloud

下载

0.2.0 0.1.0 0.3.0 0.4.0 0.4.1 0.4.2

详情介绍:

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 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.

更新日志:

0.4.1 0.1.0