VIPs and other themes can declare the permastruct, tag and category bases in their themes.

This is done by filtering the option.

To ensure we’re using the freshest values, and that the option value is available earlier than when the theme is loaded, we need to get each option, save it again, and then reinitialize wp_rewrite.

On WordPress.com this happens auto-magically when theme updates are deployed


This function has no parameters.

Return Value


Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.