Tribe__Events__Rewrite::single( array|string $regex, array $args = array() )
Alias to $this->add() but adding the singular base first
Contents
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()
Return
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 );
}