title: Change CSS Class by a php function
body: <p>I use a function to initialize a page in my wordpress.</p>
  
  <pre><code>function bp_group_calendar_init() {
  require( dirname( __FILE__ ) . '/groupcalendar/bp-group-calendar.php' );
  }
  add_action( 'bp_include', 'bp_group_calendar_init' );
  </code></pre>
  
  <p>Now, I want to change the following css class of my menu:</p>
  
  <p>From:</p>
  
  <pre><code> &lt;li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-8 current_page_item"&gt;&lt;a href="xxxxxx"&gt;&lt;strong&gt;Vereine&lt;/strong&gt;&lt;/a&gt;&lt;ul class="description"&gt;xxx&lt;/ul&gt;&lt;/li&gt;
  </code></pre>
  
  <p>To:</p>
  
  <pre><code> &lt;li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-object-page"&gt;&lt;a href="xxxxxx"&gt;&lt;strong&gt;Vereine&lt;/strong&gt;&lt;/a&gt;&lt;ul class="description"&gt;xxx&lt;/ul&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Thank you for your help
  Cheers Marc</p>