admin_menu WordPress Action Hook
The admin_menu hook allows you to add new menus to the WordPress admin area. This hook is triggered when the admin menu is being loaded.
do_action( 'admin_menu', string $context ) #
Fires before the administration menu loads in the admin.
Parameters
- $context
(string)Empty context.
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |