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



date_rewrite_rules › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'date_rewrite_rules', $date_rewrite )
Parameters:
  • (string[]) $date_rewrite Array of rewrite rules for date archives, keyed by their regex pattern.
    Required: Yes
Defined at:
Codex:

Filters rewrite rules used for date archives.

Likely date archives would include /yyyy/, /yyyy/mm/, and /yyyy/mm/dd/.





Source

$date_rewrite = apply_filters( 'date_rewrite_rules', $date_rewrite );