Make admin menu skip links accessible to developers
|Reported by:||littler.chicken||Owned by:|
|Component:||Administration||Keywords:||has-patch needs-docs 2nd-opinion|
Currently, the WP admin skip links are hard coded in menu-header.php and cannot be modified or added on to. Use case here might be a plugin with a tabbed settings page; it might be nice to have the "Skip to main content" bypass the tabs, since right now keyboard users still have to tab through that entire menu, but allow the developer to add a "Skip to plugin settings menu" or something similar on their settings page, so that both the settings form and the tabs are available, but separate.
Modifying the output here to use a function with an array and filter can be done easily, without changing the current output, and future skip links can be simply added to the array.
A related change should be adding the existing section ID (set in add_settings_section, so anyone using the Settings API will have already done this) to the section title output in do_settings_section, to set up the appropriate anchor. Developers who want to add a skip link to a section on their settings page then just need to add the section ID and text to the skip links array, using the filter.
Change History (14)
12 months ago
- Keywords needs-docs added
- Milestone changed from Awaiting Review to 4.6