WP Manifestindependent plugin directory
manifest / multisite / restrict-network-templates

Restrict Network Templates

Restrict the management of templates to a network's main site.

★ 2stars
13release downloads
1.0.0latest · 3 years ago

Install

Download restrict-network-templates.1.0.0.zip From the 1.0.0 release on GitHub, May 3, 2023

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/happyprime/restrict-network-templates/releases/download/1.0.0/restrict-network-templates.1.0.0.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Restrict the management of templates to a network's main site.

Description

This plugin should be network activated on a multisite network. When activated:

  • The list of default template types is filtered to return an empty list.
  • The /wp/v2/templates endpoint in WordPress returns an empty list.
  • The WP_REST_Templates_Controller permissions check is overridden to prevent the update of templates outside of the main site.

This plugin works in tandem with Network Template Parts to provide a framework for a shared look and feel of websites on a multisite network.

Activating this plugin will impact the usefulness of the full site editor in WordPress and will require thinking about the site in parts rather than full templates.

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.0.0 latest
May 3, 2023 3 years ago
restrict-network-templates.1.0.0.zip
13