An mu-plugin that forces a WordPress theme to always be active. Intended for a Headless WordPress setup.
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.
});