_user_admin_menu
Fires before the administration menu loads in the User Admin.
The hook fires before menus and sub-menus are removed based on user privileges.
Usage
add_action( '_user_admin_menu', 'wp_kama__user_admin_menu_action' ); /** * Function for `_user_admin_menu` action-hook. * * @return void */ function wp_kama__user_admin_menu_action(){ // action... }
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
In file: /wp-admin/includes/menu.php
_user_admin_menu
wp-admin/includes/menu.php 30
do_action( '_user_admin_menu' );