Tribe__Tickets__RSVP::register_types()
Register our custom post type
Source
File: src/Tribe/RSVP.php
public function register_types() {
$ticket_post_args = array(
'label' => 'Tickets',
'labels' => array(
'name' => __( 'RSVP Tickets', 'event-tickets' ),
'singular_name' => __( 'RSVP Ticket', 'event-tickets' ),
),
'public' => false,
'show_ui' => false,
'show_in_menu' => false,
'query_var' => false,
'rewrite' => false,
'capability_type' => 'post',
'has_archive' => false,
'hierarchical' => true,
);
$attendee_post_args = array(
'label' => 'Attendees',
'public' => false,
'show_ui' => false,
'show_in_menu' => false,
'query_var' => false,
'rewrite' => false,
'capability_type' => 'post',
'has_archive' => false,
'hierarchical' => true,
);
/**
* Filter the arguments that craft the ticket post type.
*
* @since 4.4.6
*
* @see register_post_type
*
* @param array $ticket_post_args Post type arguments, passed to register_post_type()
*/
$ticket_post_args = apply_filters( 'tribe_tickets_register_ticket_post_type_args', $ticket_post_args );
register_post_type( $this->ticket_object, $ticket_post_args );
/**
* Filter the arguments that craft the attendee post type.
*
* @since 4.4.6
*
* @see register_post_type
*
* @param array $attendee_post_args Post type arguments, passed to register_post_type()
*/
$attendee_post_args = apply_filters( 'tribe_tickets_register_attendee_post_type_args', $attendee_post_args );
register_post_type( self::ATTENDEE_OBJECT, $attendee_post_args );
}