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



wp_enable_random_content_redirect › WordPress过滤钩子

Since7.2.0
已弃用n/a
› apply_filters( 'wp_enable_random_content_redirect', true )
参数:
  • () enabled Whether random content redirects are enabled. Default true.
    Required: Yes
定义在:
文档:

Filters whether random content redirects are enabled.

Random content redirects add rewrite rules for URLs such as `/random/`, so the rewrite rules need to be flushed after changing the value returned by this filter.




源码

return (bool) apply_filters( 'wp_enable_random_content_redirect', true );