Skip to content

masonitedoors/wp-theme-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

WP Theme Lock

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.
});