Tribe__Events__Rewrite::single( array|string $regex, array $args = array() )

Alias to $this->add() but adding the singular base first


Parameters

$regex

(array|string) (Required) The regular expression to catch the URL

$args

(array) (Optional) The arguments in which the regular expression "alias" to

Default value: array()


Top ↑

Return

(Tribe__Events__Rewrite)


Top ↑

Source

File: src/Tribe/Rewrite.php

	public function single( $regex, $args = array() ) {
		$regex = array_merge( array( $this->bases->single, '([^/]+)' ), (array) $regex );

		return $this->add( $regex, $args );
	}