This plugin is designed to handle dynamic base URLs for staging and production environments.
- Download the
dynamic-base-url-plugin.zip
file from the releases section. - Upload the plugin to your WordPress site.
- Activate the plugin through the WordPress admin dashboard.
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()
.