Tribe__Tabbed_View__Tab::get_url( array|string $args = array(), boolean $relative = false )

Returns the link to this tab


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


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Tabbed_View/Tab.php

	public function get_url( $args = array(), $relative = false ) {
		if ( ! empty( $this->url ) ) {
			return $this->url;
		}

		$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 $this->tabbed_view->get_url( $args, $relative );
	}