wp_safe_redirect_fallback

wp_safe_redirect_fallback

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('wp_safe_redirect_fallback') is found 1 times:

  • /wp-includes/pluggable.php line 1541
    1537
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    1546
    1547
             *
             * @param string $fallback_url The fallback URL to use by default.
             * @param int    $status       The HTTP response status code to use.
             */
            $fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
     
            $location = wp_validate_redirect( $location, $fallback_url );
     
            return wp_redirect( $location, $status, $x_redirect_by );
        }
    endif;

See this hook used in plugins: