Ticket::get_regular_price( int $ticket_id )
Get the regular price of a ticket.
Contents
Parameters
- $ticket_id
-
(int) (Required) The ticket post ID.
Return
(string) The regular price of the ticket.
Source
File: src/Tickets/Commerce/Ticket.php
public function get_regular_price( int $ticket_id ): string {
return get_post_meta( $ticket_id, '_price', true );
}
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |