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



random_rewrite_rules › WordPress Filter Hooks

Since7.2.0
Deprecatedn/a
› apply_filters( 'random_rewrite_rules', $random_rewrite )
Parameters:
  • () random_rewrite Array of rewrite rules for random content redirects, keyed by their regex pattern.
    Required: Yes
Defined at:
Codex:

Filters rewrite rules used for random content redirects.

Likely random content rules would include `/random/`, as well as term, author and post type archives prefixed with the random base, for example `/random/category/news/`.




Source

$random_rewrite = apply_filters( 'random_rewrite_rules', $random_rewrite );