wpcom_vip_local_development_refresh_wp_rewrite

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

Parameters

This function has no parameters.

Return Value

void

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.