Our next goal is to add a simple post template to the WordPress write page.
The purpose of a custom post template is to handle writing a quick post in case we don't need the whole Write Post interface, for reasons of speed or customization.
The great thing about post templates is that they can be customized to accept any information you want—for example, job portal listings or inventory items.
Let's start with a simple Add Photo
template where we want to be able to just set the title, specify a photo and publish immediately.
In order to create the post template, we need a place for it in the menus. We will use the Write menu and place a submenu there:
// add admin_menu action post template, addingadd photo post template, creatingadd_action('admin_menu', array(&$this, 'admin_menu')); } // Hook the admin menu function admin_menu() { // submenu pages add_submenu_page('post-new.php', __('Add Photo', $this->plugin_domain...