wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_enable_random_content_redirect › WordPress Filter Hooks

Since7.2.0
Deprecatedn/a
› apply_filters( 'wp_enable_random_content_redirect', true )
Parameters:
  • () enabled Whether random content redirects are enabled. Default true.
    Required: Yes
Defined at:
Codex:

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.




Source

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