Function Reference/wp sanitize redirect
Sanitizes a URL for use in a redirect. Removes invalid URL characters in the URL parameter.
- (string) (required) URL of the link to redirect to.
- Default: None
- redirect-sanitized URL
wp_sanitize_redirect() is located in