Skip to content

Add navigation menus query ability - #31

Open
Builder106 wants to merge 1 commit into
WordPress:mainfrom
SankofaForge:add/navigation-menus-query
Open

Builder106 wants to merge 1 commit into
WordPress:mainfrom
SankofaForge:add/navigation-menus-query

Conversation

@Builder106

@Builder106 Builder106 commented Nov 22, 2026 •

Copy link
Copy Markdown

What?

Ports the read-only navigation menus ability from WordPress/ai#858 into this package as wp/navigation-menus-query.

The ability retrieves a menu and its items by ID, slug, or theme location. It can also list menus alongside registered locations and their assignments. Access requires edit_theme_options.

The wp/ name is provisional while #18 is open.

Validation

  • Navigation tests passed on stable WordPress and trunk.
  • The full stable and trunk suites completed without failures. Both reported the existing media upload warning; stable skipped two media-trash tests, and trunk skipped those plus a settings polyfill test.
  • Registration succeeded in both orders with the original AI ability class. Both ability names remain available.
  • PHPCS, PHPStan, manifest verification, and the Core round-trip checks passed.

Media

Stable WordPress
navigation-tests-stable

WordPress Trunk
navigation-tests-trunk

@Builder106
Builder106 requested a review from a team as a code owner November 22, 2026 19:13
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Builder106 <builder106@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant