PostTypes
  • PostTypes v2.2.1
  • Getting Started
  • PostTypes
    • Create a Post Type
    • Add Taxonomies
    • Filters
    • Columns
    • Menu Icons
    • Flush Rewrite Rules
  • Taxonomies
    • Create a Taxonomy
    • Add to Post Type
    • Columns
  • Notes
  • Contributing
  • Changelog
Powered by GitBook
On this page
  1. PostTypes

Flush Rewrite Rules

PreviousMenu IconsNextTaxonomies

Last updated 6 years ago

You can programmatically recreate the sites rewrite rules with the flush() method. This is an expensive operation and should be used with caution, see for more.

$books->flush();
codex