#7682 closed defect (bug) (fixed)
API for adding settings to default settings pages
| Reported by: | ryan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
Plugins should be able to integrate new settings and new sections of settings into the default settings pages via API.
Attachments (2)
Change History (10)
#1
@
18 years ago
Patch implements add_settings_section() and add_settings_field() and changes options-writing.php to make use of them.
#5
@
18 years ago
Anybody confirm this is functional for plugins in 2.7? Doesn't seem to work or maybe I'm missing something.
function myex_conf()
{
add_settings_section('myex_settings','My Example Settings','myex_settings','reading');
}
add_action('admin_init','myex_conf');
function myex_settings()
{
echo "foo";
}
#6
@
18 years ago
- Resolution fixed
- Status closed → reopened
The API works fine for writing, discussion, etc - but does not work for reading. Reopening.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
add_settings_section(), add_settings_field