do_action( 'admin_menu', string $context )
Fires before the administration menu loads in the admin.
Parameters Parameters
- $context
-
(string) Empty context.
More Information More Information
- This action is used to add extra submenus and menu options to the admin panel’s menu structure. It runs after the basic admin panel menu structure is in place.
- This action mustn’t be placed in an admin_init action function because the admin_init action is called after admin_menu.
Source Source
Changelog Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
If you want to change a menu label, you can hook this action and change the
global $menu, $submenu values
,Example migrated from Codex:
The example comes from the wpautop-control plugin, in which the code is used to add an options page to the “Settings” menu.