Action hook 'user_admin_menu'

in WP Core File wp-admin/includes/menu.php at line 151

View Source

user_admin_menu

Action Hook
Description
Fires before the administration menu loads in the User Admin.

Hook Information

File Location wp-admin/includes/menu.php View on GitHub
Hook Type Action
Line Number 151

Hook Parameters

Type Name Description
string $context Empty context.

Usage Examples

Basic Usage
<?php
// Hook into user_admin_menu
add_action('user_admin_menu', 'my_custom_function', 10, 1);

function my_custom_function($context) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/menu.php:151 - How this hook is used in WordPress core
<?php
 146  	 *
 147  	 * @since 3.1.0
 148  	 *
 149  	 * @param string $context Empty context.
 150  	 */
 151  	do_action( 'user_admin_menu', '' );
 152  } else {
 153  
 154  	/**
 155  	 * Fires before the administration menu loads in the admin.
 156  	 *

PHP Documentation

<?php
/**
	 * Fires before the administration menu loads in the User Admin.
	 *
	 * @since 3.1.0
	 *
	 * @param string $context Empty context.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/menu.php
Related Hooks

Related hooks will be displayed here in future updates.