Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 687 Bytes

File metadata and controls

17 lines (11 loc) · 687 Bytes

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