title: Add both text and variable in WordPress wp_nav_menu $menu_class
body: <p>I am generating a menu in WordPress using wp_nav_menu() function and I want to add both text and variable into the 'menu_class' property.</p>
  
  <p>Now this is how I do it:</p>
  
  <pre><code> `'menu_class'      =&gt; 'text' . $variable,`
  </code></pre>
  
  <p>However no class is shown when I use this method (no error/warnings as well).</p>
  
  <p>I want to know how to add the text "text" and the variable "$variable" into 'menu_class' property?</p>
  
  <p>Thanks</p>