Success::get_page_id()

Get the Success page ID.


Return

(int|null)


Top ↑

Source

File: src/Tickets/Commerce/Success.php

	public function get_page_id() {
		$success_page = (int) tribe_get_option( Settings::$option_success_page );

		if ( empty( $success_page ) ) {
			return null;
		}

		/**
		 * Allows filtering of the Page ID for the Success page.
		 *
		 * @since 5.1.9
		 *
		 * @param int|null $success_page Which page is used in the settings.
		 */
		return apply_filters( 'tec_tickets_commerce_success_page_id', $success_page );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.9 Introduced.