Week_View::url_for_query_args( string|int|DateTimeInterface $date = null, array|string $query_args = null )

Overrides the base View implementation to take into account Week View rewrite rules.


Parameters

$date

(string|int|DateTimeInterface) (Optional) The date to return the URL for.

Default value: null

$query_args

(array|string) (Optional) The query string or arguments to append to the URL.

Default value: null


Top ↑

Return

(string) The URL for the Week View on the date.


Top ↑

Source

File: src/Tribe/Views/V2/Views/Week_View.php

	public function url_for_query_args( $date = null, $query_args = null ) {
		return $this->removing_week_number_rule( function () use ( $date, $query_args ) {
			return parent::url_for_query_args( $date, $query_args );
		} );
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.