masonitedoors / wp-theme-lock
An mu-plugin that forces a WordPress theme to always be active. Requires https://github.com/masonitedoors/wp-headless-theme.
Package info
github.com/masonitedoors/wp-theme-lock
Type:wordpress-muplugin
pkg:composer/masonitedoors/wp-theme-lock
1.0.0
2020-11-12 16:17 UTC
Requires
- php: >=7
This package is auto-updated.
Last update: 2026-03-13 04:19:56 UTC
README
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. });