Constants

Knowledgebase Docs » UberMenu 3
USEFUL? 3
UberMenu 3

Constants can be set in your wp-config.php to control certain functionality.

UBERMENU_ALLOW_TOP_LEVEL_DYNAMIC_ITEMS

define( 'UBERMENU_ALLOW_TOP_LEVEL_DYNAMIC_ITEMS' , true );

Allow Dynamic Terms and Dynamic Posts in the top level of the menu. Not recommended, may cause issues.

UBERMENU_JS_IN_FOOTER

define( 'UBERMENU_JS_IN_FOOTER' , true );

Move the UberMenu Javascript to the header by setting this to false. Not recommended.

UBERMENU_ALLOW_NAV_MENU_ITEM_ARGS_FILTER

define( 'UBERMENU_ALLOW_NAV_MENU_ITEM_ARGS_FILTER' , true );

Enable to allow the nav_menu_item_args filter to run on each menu item.