I am building a plugin. I just want to create page template whenever i install plugin. Page template like full-width template. I have used codes after searching but not able to get success. So please help me.
Thanks in advance
If what you want is to actually generate a page template when the plugin is activated, you can use something like this:
This only works if the web server user has enough privileges to write to theme directory.