wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_is_random_content_redirect_enabled › WordPress Function
Since7.2.0
已弃用n/a
› wp_is_random_content_redirect_enabled ( 没有参数 )
| 返回: |
|
| 定义在: |
|
| 文档: |
Determines whether random content redirects are enabled.
源码
function wp_is_random_content_redirect_enabled(): bool {
/**
* 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.
*
* @since 7.2.0
*
* @param bool $enabled Whether random content redirects are enabled. Default true.
*/
return (bool) apply_filters( 'wp_enable_random_content_redirect', true );
}