Page::get_url( array $args = array() )
Returns the main admin attendees URL.
Contents
Parameters
- $args
-
(array) (Optional) Arguments to pass to the URL.
Default value: array()
Return
(string)
Source
File: src/Tickets/Admin/Attendees/Page.php
public function get_url( array $args = [] ): string {
$defaults = [
'page' => static::$slug,
];
// Allow the link to be "changed" on the fly.
$args = wp_parse_args( $args, $defaults );
// Keep the resulting URL args clean.
$url = add_query_arg( $args, admin_url( 'admin.php' ) );
/**
* Filters the URL to the Event Tickets attendees page.
*
* @since 5.9.1
*
* @param string $url The URL to the Event Tickets attendees page.
*/
return apply_filters( 'tec_tickets_attendees_page_url', $url );
}