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



strict_redirect_guess_404_permalink › WordPress过滤钩子

Since5.5.0
已弃用n/a
apply_filters( 'strict_redirect_guess_404_permalink', false )
参数:
  • (bool) $strict_guess Whether to perform a strict guess. Default false (loose guess).
    Required: Yes
定义在:
文档:

Filters whether to perform a strict guess for a 404 redirect.

Returning a truthy value from the filter will redirect only exact post_name matches.





源码

$strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );