user_admin_menu
Fires before the administration menu loads in the User Admin.
Usage
add_action( 'user_admin_menu', 'wp_kama_user_admin_menu_action' ); /** * Function for `user_admin_menu` action-hook. * * @param string $context Empty context. * * @return void */ function wp_kama_user_admin_menu_action( $context ){ // action... }
- $context(string)
- Empty context.
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 151
do_action( 'user_admin_menu', '' );