On this page
apply_filters( 'wp_safe_redirect_fallback', string $fallback_url, int $status )
Filters the redirect fallback URL for when the provided redirect is not safe (local).
Parameters
$fallback_urlstring-
The fallback URL to use by default.
$statusint-
The HTTP response status code to use.
Source
File: wp-includes/pluggable.php. View all references
$location = wp_validate_redirect( $location, apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_safe_redirect() wp-includes/pluggable.php | Performs a safe (local) redirect, using wp_redirect() . |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback