Tribe__Tickets__JSON_LD__Type::instance()

Plugin: Event Tickets

Method: On PHP 5.2 the child class doesn’t get spawned on the Parent one, so we don’t have access to that information on the other side unless we pass it around as a param so we throw __CLASS__ to the parent::instance() method to be able to spawn new instance of this class and save on the parent::$instances variable.

tribe_tickets_json_ld_{$post_type}_type

Plugin: Event Tickets

Filter Hook: This will allow you to change the type for the Rich Snippet, by default it will use the type Product for any Post type or Page. If this is runs in a book post type the filter becomes something like.