wp_sanitize_redirect


wp_sanitize_redirect ( $location )

Parameters:
  • (string) $location The path to redirect to.
Returns:
  • (string) Redirect-sanitized URL.
Defined at:

Description

Sanitizes a URL for use in a redirect.

Related Functions

wp_safe_redirect, _wp_sanitize_utf8_in_redirect, wp_validate_redirect, wp_redirect, sanitize_user_object

Top Google Results

User discussions

wpseek mobile