diff options
| author | Max | 2018-11-05 12:47:47 +0100 |
|---|---|---|
| committer | Max | 2018-11-05 12:47:47 +0100 |
| commit | 1373956529cd4c5f7a5bdfaefad407b24c8bb828 (patch) | |
| tree | 98f6cee101b6a77a723f5796291b8128af396180 /api/menu.php | |
| parent | 89bcafe654844367ea3a730c8c03b8e63047db06 (diff) | |
| download | fuselkoenig_de-1373956529cd4c5f7a5bdfaefad407b24c8bb828.tar.gz | |
Adds first version of an API to get the top navigation menu and the sidebar.
Diffstat (limited to 'api/menu.php')
| -rw-r--r-- | api/menu.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/menu.php b/api/menu.php new file mode 100644 index 0000000..58ef116 --- /dev/null +++ b/api/menu.php @@ -0,0 +1,6 @@ +<?php + +function fk_get_menu() { + # Change 'menu' to your own navigation slug. + return wp_get_nav_menu_items('Top'); +} |
