Tribe__Tickets_Plus__Meta::__construct( string $path = null )
Tribe__Tickets_Plus__Meta constructor.
Contents
Parameters
- $path
-
(string) (Optional)
Default value: null
Source
File: src/Tribe/Meta.php
public function __construct( $path = null, Tribe__Tickets_Plus__Meta__Storage $storage = null ) {
$this->storage = $storage ? $storage : new Tribe__Tickets_Plus__Meta__Storage();
if ( ! is_null( $path ) ) {
$this->path = trailingslashit( $path );
}
add_action( 'event_tickets_after_save_ticket', array( $this, 'save_meta' ), 10, 3 );
add_action( 'event_tickets_ticket_list_after_ticket_name', array( $this, 'maybe_render_custom_meta_icon' ) );
add_action( 'tribe_events_tickets_metabox_edit_accordion_content', array( $this, 'accordion_content' ), 10, 2 );
/* Ajax filters and actions */
add_filter( 'tribe_events_tickets_metabox_edit_attendee', array( $this, 'ajax_attendee_meta' ), 10, 2 );
add_action( 'wp_ajax_tribe-tickets-info-render-field', array( $this, 'ajax_render_fields' ) );
add_action( 'wp_ajax_tribe-tickets-load-saved-fields', array( $this, 'ajax_render_saved_fields' ) );
add_action( 'woocommerce_remove_cart_item', array( $this, 'clear_storage_on_remove_cart_item' ), 10, 2 );
// Check if the attendee registration cart has required meta
add_filter( 'tribe_tickets_attendee_registration_has_required_meta', array( $this, 'cart_has_required_meta' ), 20, 1 );
$this->meta_fieldset();
$this->render();
$this->rsvp_meta();
$this->export();
}
Changelog
| Version | Description |
|---|---|
| 5.4.4 | Introduced. |