Ticket::get_price( Tribe__Tickets__Ticket_Object $ticket )

Get the price of a ticket.


Parameters

$ticket

(Tribe__Tickets__Ticket_Object) (Required) The ticket object.


Top ↑

Return

(string) The price of the ticket.


Top ↑

Source

File: src/Tickets/Commerce/Ticket.php

	public function get_price( Ticket_Object $ticket ): string {
		if ( $ticket->on_sale ) {
			return $this->get_sale_price( $ticket->ID );
		}
		return $this->get_regular_price( $ticket->ID );
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.