#28795 closed enhancement (invalid)
Group Options by sections
Reported by: | alecuf | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | needs-patch close |
Focuses: | Cc: |
Description
Enhancement: new "section" column to wp_options table
The new column will be used to organize options better. It may serve as a namespace for options. Each plugin will get its section. This way it will be easier to clean the wp_options table from unused options, easier to call all the options of a plugin/theme. For now developers use hacks like naming all the options with a "namespace_" at the begining, or saving all the options in one big option cell. Transients will go to "transient" section, etc.
It will be easier to make this compatible with older versions of WP.
Change History (5)
#2
@
10 years ago
This makes sense however I do not think we have to add a column to the db. We could introduce a few new functions to automatically prefix the option name and create the same effect. I will work up an example.
It will be easy, not easier, to make this compatible with older versions of WP.