masonitedoors/wp-theme-lock

An mu-plugin that forces a WordPress theme to always be active. Requires https://github.com/masonitedoors/wp-headless-theme.

Installs: 135

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

1.0.0 2020-11-12 16:17 UTC

This package is auto-updated.

Last update: 2024-12-13 01:22:43 UTC


README

WP Theme Lock on Packagist

An mu-plugin that forces a WordPress theme to always be active. Intended for a Headless WordPress setup.

Config

Out of the box, this mu-plugin expects wp-headless-theme to be installed.

You can set your own theme using the available filter in a separate mu-plugin.

add_filter( 'wp_theme_lock', function() {
  return 'twentytwenty'; // Theme directory to lock.
});