add_rewrite_endpoint()
add_rewrite_endpoint( mixed $name, mixed $places, mixed $query_var = true ) Adds an endpoint, like /trackback/.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $name string | Name of the endpoint. Required |
| int | $places Endpoint mask describing the places the endpoint should be added. Accepts a mask of: - `EP_ALL` - `EP_NONE` - `EP_ALL_ARCHIVES` - `EP_ATTACHMENT` - `EP_AUTHORS` - `EP_CATEGORIES` - `EP_COMMENTS` - `EP_DATE` - `EP_DAY` - `EP_MONTH` - `EP_PAGES` - `EP_PERMALINK` - `EP_ROOT` - `EP_SEARCH` - `EP_TAGS` - `EP_YEAR` Required |
| mixed | (string | bool) $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var for this endpoint. Defaults to the value of `$name`. Required |