Multisite improvements in WordPress 6.1

Using the metadata API for network options
The way that network options are accessed is changing in WordPress 6.1. Network options have always been stored in a meta table called sitemeta. This name is confusing, as “site” in this context means “network,” not to be confused with blog meta, used to store site metadata. Prior to WordPress 6.1, the functions get_network_option, add_network_option, update_network_options, and delete_network_option used custom database queries and caching. This resulted in some performance issues and lots of code to maintain.

This post was originally published on Make Core by Jonny Harris.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.