Page::get_requested_tribe_has_tickets()
Gets the requested tribe-has-tickets based on $_REQUEST[‘tribe-has-tickets’] or $_REQUEST[‘url’] parameters.
Return
(null|string)
Source
File: src/Tribe/Admin/Manager/Page.php
public function get_requested_tribe_has_tickets() {
$has_tickets = tribe_get_request_var( 'tribe-has-tickets' );
if ( ! $has_tickets && isset( $_REQUEST['url'] ) ) {
if ( $query_string = wp_parse_url( $_REQUEST['url'], PHP_URL_QUERY ) ) {
$query_args = wp_parse_args( $query_string );
$has_tickets = Arr::get( $query_args, 'tribe-has-tickets', null );
}
}
return $has_tickets;
}
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |