API - lokothodida/gs-custom-menu GitHub Wiki
Methods
void get_custom_menu($slug[, array $classes])
Prints out a custom menu with the id $slug
. $classes
is an optional array
that gives CSS class names for the currentpath
, current
, parent
and child
entries in the menu. Prints nothing if the menu
doesn't exist.
Method is available on the front end of the site (e.g. in your theme's template files).
get_custom_menu('your-menu-id', array(
// These are the default values
'currentpath' => 'currentpath',
'current' => 'current',
'parent' => 'parent',
'child' => 'child
));