Checkout::get_page_id()
Get the Checkout page ID.
Return
(int|null)
Source
File: src/Tickets/Commerce/Checkout.php
public function get_page_id() {
$checkout_page = (int) tribe_get_option( Settings::$option_checkout_page );
if ( empty( $checkout_page ) ) {
return null;
}
/**
* Allows filtering of the Page ID for the Checkout page.
*
* @since 5.1.9
*
* @param int|null $checkout_page Which page is used in the settings.
*/
return apply_filters( 'tec_tickets_commerce_checkout_page_id', $checkout_page );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |