Title: wp_safe_redirect_fallback
Published: August 18, 2015
Last modified: February 24, 2026

---

# apply_filters( ‘wp_safe_redirect_fallback’, string $fallback_url, int $status )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#wp--skip-link--target)

Filters the redirect fallback URL for when the provided redirect is not safe (local).

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#parameters)󠁿

 `$fallback_url`string

The fallback URL to use by default.

`$status`int

The HTTP response status code to use.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#source)󠁿

    ```php
    $fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/pluggable.php#L1637)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/pluggable.php#L1637-L1637)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_safe_redirect()](https://developer.wordpress.org/reference/functions/wp_safe_redirect/)`wp-includes/pluggable.php` |

Performs a safe (local) redirect, using [wp_redirect()](https://developer.wordpress.org/reference/functions/wp_redirect/) .

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_safe_redirect_fallback/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.3.0](https://developer.wordpress.org/reference/since/4.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_safe_redirect_fallback%2F)
before being able to contribute a note or feedback.