Dynamic Base URL
This plugin is designed to handle dynamic base URLs for staging and production environments.
by WInston Porras · github.com/winston9310/dynamic-base-url-wp-plugin · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/winston9310/dynamic-base-url-wp-plugin/archive/refs/heads/main.zipDynamic Base URL Plugin
This plugin is designed to handle dynamic base URLs for staging and production environments.
Installation
- Download the
dynamic-base-url-plugin.zipfile from the releases section. - Upload the plugin to your WordPress site.
- Activate the plugin through the WordPress admin dashboard.
Usage
The plugin automatically determines whether the site is in a staging or production environment based on the host name and sets the appropriate base URL.
To retrieve the dynamic base URL in your code, you can use the provided function get_dynamic_base_url().