From aa195ac04f6d785fdd82354484021c8f89ce7752 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 21 Jun 2024 09:03:39 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20`@menu`=20to=20the=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/usage/wordpress.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/usage/wordpress.md b/docs/usage/wordpress.md index 85272e4..82e5a99 100644 --- a/docs/usage/wordpress.md +++ b/docs/usage/wordpress.md @@ -544,3 +544,13 @@ It comes with two assisting directives `@hassidebar` and `@endhassidebar` that c @thememod('header-bg-color') @thememod('header-bg-color', '#fff') ``` + +## @menu + +`@menu` allows you to easily call `wp_nav_menu()` and is typically wrapped in `@hasmenu` and `@endhasmenu`. + +```php +@hasmenu('primary_navigation') + @menu(['theme_location' => 'primary_navigation']) +@endhasmenu +```