Opened 8 years ago
Last modified 6 years ago
#37355 new enhancement
remove_settings_section() counterpart to add_settings_section()
Reported by: | stephenharris | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Options, Meta APIs | Keywords: | has-unit-tests has-patch |
Focuses: | Cc: |
Description
The settings API allows for settings sections to be added, but not removed.
To remove section you have to do the following
<?php global $wp_settings_sections; unset( $wp_settings_sections[$page][$id] )
To avoid accessing globals directly this should be wrapped inside a function.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Introduce remove_settings_section and add tests