network_admin_menu
Action HookDescription
Fires before the administration menu loads in the Network Admin.Hook Information
File Location |
wp-admin/includes/menu.php
View on GitHub
|
Hook Type | Action |
Line Number | 141 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$context
|
Empty context. |
Usage Examples
Basic Usage
<?php
// Hook into network_admin_menu
add_action('network_admin_menu', 'my_custom_function', 10, 1);
function my_custom_function($context) {
// Your custom code here
}
Source Code Context
wp-admin/includes/menu.php:141
- How this hook is used in WordPress core
<?php
136 *
137 * @since 3.1.0
138 *
139 * @param string $context Empty context.
140 */
141 do_action( 'network_admin_menu', '' );
142 } elseif ( is_user_admin() ) {
143
144 /**
145 * Fires before the administration menu loads in the User Admin.
146 *
PHP Documentation
<?php
/**
* Fires before the administration menu loads in the Network 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.