[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.
| Plugin | From version | Network screen |
|---|---|---|
| Subset SEO | 0.14.0 | Network Admin → Subset → SEO network defaults, with Subset SEO Pro 0.8.0 |
| Subset Opt-Out | 0.12.0 | Network Admin → Subset → Opt-Out, with Subset Opt-Out Pro 0.7.0 |
| Subset Redirects | 0.14.0 | Network Admin → Subset → Redirects, with Subset Redirects Pro 0.12.0 |
| Subset Sizes | 0.14.0 | Network Admin → Subset → Image Sizes, with Subset Sizes Pro 0.8.0 |
| Subset Search | 1.13.0 | Network 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:
- The plugin’s default.
- The network’s default.
- The value the site saved.
- A network lock, which applies the network’s default whatever the site saved.
- A constant in the site’s
wp-config.php.
Set defaults on the network screen
- In Network Admin, open the plugin’s screen under Subset.
- Change the settings. Every value on the screen becomes a network default when you save.
- Tick the lock box under each setting that sites mustn’t change.
- 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.