wp_sanitize_redirect
wp_sanitize_redirect ( $location )
Parameters:- (string) location The path to redirect to.
Returns:- (string) Redirect-sanitized URL.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Sanitizes a URL for use in a redirect.