Woocommerce myaccount add tab not working
<p>I want to add more than one tab to my myaccount page. I've searched in Stackoverflow questions about this topic and I found something and I've did it like they said but don't get content from my given .php file.</p>

<p>This is the code:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>add_filter( 'woocommerce_account_menu_items', 'my_custom_my_account_menu_items' ); 

function my_custom_my_account_menu_items( $items ) {
    $items = array(
        'dashboard'           =&gt; __( 'Mein Account', 'woocommerce' ),
        'orders'              =&gt; __( 'Orders', 'woocommerce' ),
 'meine-trainingsplaene'    =&gt;     'Meine Trainingspläne', //New Tab!!
 'meine-ernaehrungsplaene'  =&gt;     'Meine Ernährungspläne', //New Tab!!
        //'downloads'           =&gt; __( 'Downloads', 'woocommerce' ),
 'motivationstipps'            =&gt;     'Motivationstipps', //New Tab!!
        //'edit-address'        =&gt; __( 'Addresses', 'woocommerce' ),
        //'payment-methods'     =&gt; __( 'Payment Methods', 'woocommerce' ),
        //'edit-account'        =&gt; __( 'Edit Account', 'woocommerce' ),
        //'customer-logout'     =&gt; __( 'Logout', 'woocommerce' ),
    );

    return $items;
}

add_filter( 'woocommerce_account_menu_items', 'my_custom_my_account_menu_items' ); 

add_action( 'init', 'add_wc_endpoint' );
function add_wc_endpoint(){
    add_rewrite_endpoint( 'meine-trainingsplaene', EP_ROOT | EP_PAGES );
 add_rewrite_endpoint( 'meine-ernaehrungsplaene', EP_ROOT | EP_PAGES );
 add_rewrite_endpoint( 'motivationstipps', EP_ROOT | EP_PAGES );
}

add_filter( 'query_vars', 'my_custom_query_vars', 0 );
function my_custom_query_vars( $vars ) {
    $vars[] = 'meine-trainingsplaene';

    return $vars;
}

function my_custom_flush_rewrite_rules() {
    flush_rewrite_rules();
}

add_action( 'wp_loaded', 'my_custom_flush_rewrite_rules' ); //wp_loaded becuase I don't have to reactivate the template (found on Stackoverflow)

function my_custom_endpoint_content() {
    include '../../plugins/woocommerce/templates/myaccount/meine-trainingsplaene.php'; //I've tried it with ../../ to go back from my theme folder to get the new file path plugins/woocommerce etc. but no effekt
}

add_action( 'woocommerce_account_meine-trainingsplaene_endpoint', 'my_custom_endpoint_content' );</code></pre>
</div>
</div>
</p>