Closed thebatclaudio closed 7 years ago
The wp_get_nav_menu_object($menu) function doesn't work with slug. So it was replaced by:
wp_get_nav_menu_object($menu)
$locations = get_nav_menu_locations(); $menu = get_term( $locations[ $data['id'] ] );
$locations = get_nav_menu_locations();
$menu = get_term( $locations[ $data['id'] ] );
The
wp_get_nav_menu_object($menu)
function doesn't work with slug. So it was replaced by:$locations = get_nav_menu_locations();
$menu = get_term( $locations[ $data['id'] ] );