Skip to content

Commit

Permalink
📝 Add @menu to the docs (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jun 21, 2024
1 parent cb34494 commit a58a9e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/usage/wordpress.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit a58a9e2

Please sign in to comment.