1. 首页
  2. WordPress钩子手册

blog_redirect_404

apply_filters( ‘blog_redirect_404’, string $no_blog_redirect )

过滤器::过滤主站点上404的重定向URL。
Filter Hook: Filters the redirect URL for 404s on the main site.

目录锚点:#说明#参数#源码


说明(Description)

仅当定义了noblogreedirect常量时才计算筛选器。


参数(Parameters)

参数 类型 说明
$no_blog_redirect (string) noblogdirect中定义的重定向URL。

源码(Source)


更新版本 源码位置 使用 被使用
3.0.0 wp-includes/ms-functions.php:2094 1 0

blog_redirect_404 为WP2原创文章,链接:https://www.wp2.cn/hook/blog_redirect_404/