_admin_menu WordPress Action Hook

The admin_menu hook is a hook that is called when the admin menu is being generated. It allows for customizations to be made to the admin menu.

do_action( '_admin_menu' ) #

Fires before the administration menu loads in the admin.


Description

The hook fires before menus and sub-menus are removed based on user privileges.


Top ↑

More Information

This action is used internally to append the Widgets menu to the theme’s main menu in the admin panel. It runs before the basic admin panel menu structure is complete.


Top ↑

Source

File: wp-admin/includes/menu.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.