Rewrite API (Clean URLs) (category)

add_permastruct()

Adds a new permalink structure for pretty URLs.

add_rewrite_endpoint()

Adds a URL endpoint, such as /trackback/. Adds additional rewrite rules for friendly URL - adds the specified endpoint.

add_rewrite_rule()

Adds a new URL rewrite rule (pretty permalink) to the WordPress rules structure.

add_rewrite_tag()

Adds/updates a query tag (for example: '%pagetype%') that can be used in pretty permalinks. This tag will be replaced with a regular expression, which is then used in a query string like: ?pagetype=mypage.

flush_rewrite_rules()

Updates the permalink rewrite rules (pretty URLs) in the database and cache. Deletes existing rules, generates and writes new ones.

remove_permastruct()

Removes a previously added permalink structure (permalinks).

remove_rewrite_tag()

Removes an existing query tag, for example %postname%.