List wp-admin menu pages
list_admin_pagesLocate WordPress admin screens by listing all menu and submenu pages with titles, slugs, URLs, required capabilities, and source plugins. Filter by plugin to see only that plugin's pages.
Instructions
List the wp-admin menu and submenu pages registered on the site — title, slug, URL, parent, required capability and the plugin each belongs to — so you can find the screen for a task (e.g. Yoast's "Search Appearance", Rank Math's "Titles & Meta", WooCommerce's settings tabs). Pass plugin to list only that plugin's pages. Menus are built from a snapshot captured on a real admin request; this refreshes it if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | No | Restrict to the pages added by this plugin (slug, dir/file, or name). | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |