Function to activate WordPress theme inside a plugin

I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without having to do it manually.
Is there any function that can do that?

Read more here:: Function to activate WordPress theme inside a plugin

Leave a Reply

Your email address will not be published. Required fields are marked *