Skip to content

[00] Settings, User guide

Network defaults and locks

On multisite, set the settings every site starts from and lock the ones sites can't change, from the network screen or WP-CLI.

On a multisite network, a network administrator can give every site the same starting settings and lock the ones sites mustn’t change. A locked setting shows as disabled on the site’s screen, with a note.

PluginFrom versionNetwork screen
Subset SEO0.14.0Network Admin → Subset → SEO network defaults, with Subset SEO Pro 0.8.0
Subset Opt-Out0.12.0Network Admin → Subset → Opt-Out, with Subset Opt-Out Pro 0.7.0
Subset Redirects0.14.0Network Admin → Subset → Redirects, with Subset Redirects Pro 0.12.0
Subset Sizes0.14.0Network Admin → Subset → Image Sizes, with Subset Sizes Pro 0.8.0
Subset Search1.13.0Network Admin → Subset → Search, with Subset Search Pro 1.8.0

The free plugins apply them, and WP-CLI sets them. The network screen needs Pro.

How a site’s value is chosen

For each setting, the later of these wins:

  1. The plugin’s default.
  2. The network’s default.
  3. The value the site saved.
  4. A network lock, which applies the network’s default whatever the site saved.
  5. A constant in the site’s wp-config.php.

Set defaults on the network screen

  1. In Network Admin, open the plugin’s screen under Subset.
  2. Change the settings. Every value on the screen becomes a network default when you save.
  3. Tick the lock box under each setting that sites mustn’t change.
  4. Save.

Set defaults with WP-CLI

wp subset <plugin> network reads and changes the same defaults and locks.

wp subset search network set operator or
wp subset search network lock operator
wp subset image-resizer network list

The subcommands are list, get, set, unset, lock and unlock. On a single site every network command ends with an error. wp subset <plugin> settings list shows network as the source of a value the network sets, and settings set refuses a locked setting.

Go back to the network defaults

Settings that point at one site’s own things can have a network default but can’t be locked: SEO’s social image, organization logo and person, Opt-Out’s privacy policy page, and the post types and taxonomies Redirects watches.

A site keeps values it saved before the network set a default. Use the network defaults, on the site’s settings screen, removes them and keeps the rest.

A Subset Search network default that changes what’s indexed needs wp subset search index --all on each site.