do_action( ‘_admin_menu’ )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Fires before the administration menu loads in the admin.


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

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.


do_action( '_admin_menu' );



User Contributed Notes

You must log in before being able to contribute a note or feedback.