Masters guide to working with WP admin menus

In this guide we explore every aspect of working with WordPress admin menu’s. Like all our Master Guide’s, it is designed primarily for WP plugin developers.

WordPress 2-tier Admin Menu System

The WordPress admin menu system has 2-tiers. There is the top layer (menu items) and under them, submenu items.

Admin Init Filter

Use this filter to access the $submenu as a global. Set the priority based on your goals because existing plugins may be manipulating the values at various priorities. For instance ACF adds it’s option pages using admin_init at priority 99.

Add Submenu Page