WP Manifestindependent plugin directory
manifest / developer / dynamic-base-url-wp-plugin

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

Dynamic Base URL Plugin

This plugin is designed to handle dynamic base URLs for staging and production environments.

Installation

  1. Download the dynamic-base-url-plugin.zip file from the releases section.
  2. Upload the plugin to your WordPress site.
  3. 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().