You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sub-Menus: outdated add_submenu_page() signature and a wrong add_options_page() parent slug #2555
The callback parameter is named $callback, and $position was added in WordPress 5.3 (@since 5.3.0 Added the $position parameter. in wp-admin/includes/plugin.php).
The Predefined Sub-Menus list also has two errors:
add_options_page() is listed twice, once with options-general.php and once with settings.php. add_options_page() always uses options-general.php. settings.php is the Network Admin parent, which already has its own line at the end of the list.
In the page source, the add_users_page() link starts with hhttps:// instead of https://. The rendered page on developer.wordpress.org shows a working link, but the Markdown source is wrong.
Developers do not learn about $position from this page, and the parameter name does not match the function reference. The duplicate add_options_page() line tells them the helper adds a page under settings.php, which it never does.
Suggested Fix
Signature: callable $function = '' → callable $callback = '', followed by int|float $position = null
Activity
github-actions commentedon Nov 6, 2026
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.
github-actions commentedon Nov 16, 2026
Heads up - the "plugins" label was applied to this issue.