/** Register core post types */ public static function register_post_types() { if (post_type_exists('ajde_events')) { return; } do_action('eventon_register_post_type'); // get updated event slug for evnet posts $evOpt = self::$evOpt; $event_slug = !empty($evOpt['evo_event_slug']) ? $evOpt['evo_event_slug'] : 'events'; $labels = eventon_get_proper_labels(__('Event', 'eventon'), __('Events', 'eventon')); register_post_type('ajde_events', apply_filters('eventon_register_post_type_ajde_events', array('labels' => $labels, 'description' => __('This is where you can add new events to your calendar.', 'eventon'), 'public' => true, 'show_ui' => true, 'capability_type' => 'eventon', 'map_meta_cap' => true, 'publicly_queryable' => true, 'hierarchical' => false, 'rewrite' => apply_filters('eventon_event_slug', array('slug' => $event_slug)), 'query_var' => true, 'supports' => apply_filters('eventon_event_post_supports', array('title', 'author', 'editor', 'custom-fields', 'thumbnail', 'page-attributes')), 'menu_position' => 15, 'has_archive' => true, 'taxonomies' => array('post_tag')))); }
function register_tix_post_type() { $labels = eventon_get_proper_labels('Event Ticket', 'Event Tickets'); register_post_type('evo-tix', apply_filters('eventon_register_post_type_tix', array('labels' => $labels, 'public' => true, 'show_ui' => true, 'capability_type' => 'eventon', 'capabilities' => array('create_posts' => false), 'map_meta_cap' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'hierarchical' => false, 'rewrite' => false, 'query_var' => true, 'supports' => array('title', 'custom-fields'), 'menu_position' => 5, 'show_in_menu' => 'edit.php?post_type=ajde_events', 'has_archive' => true))); }