--- /dev/null
+<?php
+/*
+* Plugin Name: Theatre Pre-Sale
+* Plugin URI: https://johnzone.org/vvk
+* Description: Keep track of sold tickets
+* Author: John Janus
+* License: GPL3
+* License URI: https://gnu.org/licenses/gpl
+*/
+defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
+
+//custom post type for events
+
+add_action('init', 'presale_create_post_type');
+
+function presale_create_post_type() {
+ register_post_type('presale_show', array(
+ 'labels' => array(
+ 'name' => __( 'Shows' ),
+ 'singular_name' => __( 'Show' ),
+ 'name_admin_bar' => __( 'Show' )
+ ),
+ 'public' => true,
+ 'has_archive' => true,
+ 'public' => true,
+ 'menu_position' => 20
+ )
+ );
+}
+
+?>