I have to append custom query parameters onto every link in the wordpress_nav_menu call.

So after every href within the menu append either ?var1=apple&var2=orange' or '&var1=apple&var2=orange'.

How do i do that?

wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'nav-menu',
 'menu_class' => 'main-menu main-nav clrf dropdown', 
'theme_location' => 'header', 'enable_bp_links' => true, 'show_home' => true ) );

The default nav menu code does not have this method. You skill is produce a small wordpress plugin that hooks in to the nav menu before it will get displayed and employ an XML transform to include this to each link.

I have carried this out before also it labored effectively however i not have the code nearby at this time. All I'm able to do is promise this works. After I next get the opportunity I'll attempt to make sure to publish it.