Ticket::get_regular_price( int $ticket_id )

Get the regular price of a ticket.


Parameters

$ticket_id

(int) (Required) The ticket post ID.


Top ↑

Return

(string) The regular price of the ticket.


Top ↑

Source

File: src/Tickets/Commerce/Ticket.php

	public function get_regular_price( int $ticket_id ): string {
		return get_post_meta( $ticket_id, '_price', true );
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.