WordPress开发者和主题制作者的搜索引擎



wp_safe_redirect_fallback ›

Since4.3.0
已弃用n/a
apply_filters( 'wp_safe_redirect_fallback', admin_url()
参数: (2)
  • (string) $fallback_url The fallback URL to use by default.
    Required: Yes
  • (int) $status The HTTP response status code to use.
    Required: Yes
定义在:
文档:

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





源码

$location = wp_validate_redirect( $location, apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status ) );