How to create a page template using custom plugin
If what you want is to actually generate a page template when the plugin is activated, you can use something like this: <?php /** * Plugin Name: Testtest * Description: Ignore * Version: 0.1 * Author: windyjonas */ function myplugin_activate() { $buf = “<?php\n” . “/*\n” . ” * Template Name: generated template\n” . ” … Read more