]> Johnzone git - wordpress_presale.git/commitdiff
initial commit
authorJohn Janus <mail@johnzone.org>
Thu, 24 Dec 2015 08:43:03 +0000 (09:43 +0100)
committerJohn Janus <mail@johnzone.org>
Thu, 24 Dec 2015 08:43:03 +0000 (09:43 +0100)
.gitignore [new file with mode: 0644]
main.php [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..d984845
--- /dev/null
@@ -0,0 +1,3 @@
+*~
+*.swp
+*.backup
diff --git a/main.php b/main.php
new file mode 100644 (file)
index 0000000..5fee237
--- /dev/null
+++ b/main.php
@@ -0,0 +1,31 @@
+<?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
+        )
+    );
+}
+
+?>