A WordPress-centric search engine for devs and theme authors



wp_redirect ›

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_redirect', $location, $status )
Parameters: (2)
  • (string) $location The path or URL to redirect to.
    Required: Yes
  • (int) $status The HTTP response status code to use.
    Required: Yes
Defined at:
Codex:

Filters the redirect location.





Source

$location = apply_filters( 'wp_redirect', $location, $status );