How can we help?

Table of Contents

How to Use Boilerplate Tokens in Keys

MainWP Bulk Settings Manager Extension supports Boilerplate tokens. By using tokens, it is possible to set per-site unique values in forms. Changing the WP > Settings > General Settings form is the best example of this.

In the WP General Settings, there are 2 fields that have to have unique values for each child site. Those are Site URL (siteurl) and WordPress Address (home). So to properly handle this form,

  1. Make sure that the Support for Boilerplate tokens is enabledHow to Use Boilerplate Tokens in Keys 1
  2. Next, after creating the Key, find it in the list and Edit it
  3. Locate the siteurl and home key fields
  4. Replace the URL in key with the [site.url] token.How to Use Boilerplate Tokens in Keys 2
  5. Save settings.

By default, the [site.url] token values are set for each child site. But if you need to use any other token or even create a custom one, be sure that values are set for each child you are submitting the key to.

Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion