Permanently activate WordPress theme
Here’s one idea: /** * Reactivate the sticky theme, if someone activates another theme. */ add_action( ‘switch_theme’, ‘wpse_permanent_theme’ ); function wpse_permanent_theme( $new_name ) { $sticky_theme_name=”twentyfifteen”; // Modify this to your needs! // Get the sticky theme info, to check if it exists (named): $sticky_theme = wp_get_theme( $sticky_theme_name ); // Reactivate the sticky theme: if( $sticky_theme->get( … Read more