Add new menus in my-account page

PHP
<?php

function add_endpoint() {
    add_rewrite_endpoint( 'my-brand', EP_ROOT | EP_PAGES );
    add_rewrite_endpoint( 'my-stories', EP_ROOT | EP_PAGES );
    add_rewrite_endpoint( 'price', EP_ROOT | EP_PAGES );
}
  
// add_action( 'init', 'add_endpoint' );
  
  
// ------------------
// 2. Add new query var
  
function add_query_vars( $vars ) {
    $vars[] = 'my-brand';
    $vars[] = 'my-stories';
    $vars[] = 'price';
    return $vars;
}
  
add_filter( 'query_vars', 'add_query_vars', 0 );
  
  
// ------------------
// 3. Insert the new endpoint into the My Account menu
  
function add_link_my_account( $items ) {
    $items['my-brand'] = '選單一';
    $items['my-stories'] = '選單二';
    $items['price'] = '選單三';
    return $items;
}
  
add_filter( 'woocommerce_account_menu_items', 'add_link_my_account' );
  


function remove_address_my_account( $items ) {
  unset($items['edit-address']);
  unset($items['downloads']);
  return $items;
}

add_filter( 'woocommerce_account_menu_items', 'remove_address_my_account', 999 );
 
function rename_address_my_account( $items ) {
  $items['orders'] = '付款紀錄';
  $items['edit-account'] = '帳戶設定';
  return $items;
}

add_filter( 'woocommerce_account_menu_items', 'rename_address_my_account', 999 );