Skip to content

Commit a58a9e2

Browse files
authored
📝 Add @menu to the docs (#148)
1 parent cb34494 commit a58a9e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/usage/wordpress.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,3 +544,13 @@ It comes with two assisting directives `@hassidebar` and `@endhassidebar` that c
544544
@thememod('header-bg-color')
545545
@thememod('header-bg-color', '#fff')
546546
```
547+
548+
## @menu
549+
550+
`@menu` allows you to easily call `wp_nav_menu()` and is typically wrapped in `@hasmenu` and `@endhasmenu`.
551+
552+
```php
553+
@hasmenu('primary_navigation')
554+
@menu(['theme_location' => 'primary_navigation'])
555+
@endhasmenu
556+
```

0 commit comments

Comments
 (0)