title: Rename My account tabbed menu items in Woocommerce
body: <p>I am currently using Wordpress Version 4.9.8 and enabled Woocommerce plugin. I need to rename the tab name "Dashboard" to "My Rewards" in My account pages.</p>
  
  <p>I found the code below, but it doesn't seem to be working:</p>
  
  <pre><code>function wpb_woo_endpoint_title( $title, $id ) {
     if ( is_wc_endpoint_url( 'dashboard' ) &amp;&amp; in_the_loop() ) { // add your endpoint urls
       $title = "My Rewards"; // change your entry-title
       return $title;
  }
  add_filter( 'the_title', 'wpb_woo_endpoint_title', 10, 2 );
  </code></pre>
  
  <p>Any help is appreciated.</p>