You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An mu-plugin that forces a WordPress theme to always be active. Intended for a [Headless WordPress](https://www.gatsbyjs.com/docs/glossary/headless-wordpress/) setup.
4
+
5
+
## Config
6
+
7
+
Out of the box, this mu-plugin expects [wp-headless-theme](https://github.com/masonitedoors/wp-headless-theme) to be installed.
8
+
9
+
You can set your own theme using the available filter in a separate mu-plugin.
10
+
11
+
```php
12
+
add_filter( 'wp_theme_lock', function() {
13
+
return 'twentytwenty'; // Theme directory to lock.
0 commit comments