wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_is_random_content_redirect_enabled › WordPress Function
Since7.2.0
Deprecatedn/a
› wp_is_random_content_redirect_enabled ( No parameters )
| Returns: |
|
| Defined at: |
|
| Codex: |
Determines whether random content redirects are enabled.
Source
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 );
}