Action hook 'adminmenu'

in WP Core File wp-admin/menu-header.php at line 308

View Source

adminmenu

Action Hook
Description
Fires after the admin menu has been output.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into adminmenu
add_action('adminmenu', 'my_custom_function');

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

Source Code Context

wp-admin/menu-header.php:308 - How this hook is used in WordPress core
<?php
 303  /**
 304   * Fires after the admin menu has been output.
 305   *
 306   * @since 2.5.0
 307   */
 308  do_action( 'adminmenu' );
 309  
 310  ?>
 311  </ul>
 312  </div>
 313  </div>

PHP Documentation

<?php
/**
 * Fires after the admin menu has been output.
 *
 * @since 2.5.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/menu-header.php
Related Hooks

Related hooks will be displayed here in future updates.