_user_admin_menu WordPress Action Hook
The user_admin_menu hook is a WordPress hook that is called when the admin menu is being generated. It allows for custom code to be run when the menu is being generated, which can be used to add or remove items from the menu.
do_action( '_user_admin_menu' ) #
Fires before the administration menu loads in the User Admin.
Description
The hook fires before menus and sub-menus are removed based on user privileges.
More Information
This action could be used to modify the menu in the user admin panel. It runs before the basic user admin panel menu structure is complete. It is more usual to use the admin_menu action to modify the menu after it is complete.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |