changes to the options api

Upcoming Changes to the Options API

Paul Bearne @ make.wordpress.org • 4 days ago

WordPress has an API for storing and loading options, the Options API. Some changes to the Options API are coming with WordPress 6.6. One of the settings when creating an option is if the option should be auto loaded with each page. Up until now, the default when an option is created was “yes” to auto load it. However, a large amount of auto-loaded data can hurt page performance. The default is being changed to “null” and a ceiling on the size of auto-loaded options is being introduced. These and other changes are discussed in this article on the make blog.