How would I force WordPress by code to load a template file on my home page? I know how to do it via the backend but I would like to create a plugin and have the option to set the front page from inside the plugin.
Basically, I am looking for the code to force loading a template when the home page is being loaded. So instead of the
index.php it would load the plugin template. I can't find anything about this.