Tribe__Events__Aggregator__Tabs__Abstract::get_url( array|string $args = array(), boolean $relative = false )
Fetches the link to this tab
Contents
Parameters
- $args
-
(array|string) (Optional) Query String or Array with the arguments
Default value: array()
- $relative
-
(boolean) (Optional) Return a relative URL or absolute
Default value: false
Return
(string)
Source
File: src/Tribe/Aggregator/Tabs/Abstract.php
public function get_url( $args = array(), $relative = false ) {
$defaults = array(
'tab' => $this->get_slug(),
);
// Allow the link to be "changed" on the fly
$args = wp_parse_args( $args, $defaults );
// Escape after the filter
return Tribe__Events__Aggregator__Page::instance()->get_url( $args, $relative );
}