/ Published in: PHP
This allows you to create a custom page template in your plugin. Say your plugin creates a custom post type and you want to override the standard archives page template to display your custom post type in a special way. You could achieve this by creating a custom template for your post type and using this code to display that template when appropriate.
URL: http://wordpress.stackexchange.com/questions/3396/create-custom-page-templates-with-plugins