wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_enable_random_content_redirect › WordPress过滤钩子
Since7.2.0
已弃用n/a
› apply_filters( 'wp_enable_random_content_redirect', true )
| 参数: |
|
| 定义在: |
|
| 文档: |
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.Related Functions: wp_random_content_redirect, wp_is_random_content_redirect_enabled, wp_is_random_content_query, wp_random_content_pre_get_posts, wp_get_random_content_sample_ids, wp_get_random_content_post_types