function custom_add_my_account_menu_item($items) {
$items['https://mycustomwebsite.com'] = __('NEW CUSTOM TAB', 'your-text-domain');
$cleanLink = str_replace('http://site-test.local/my-account', '', $items);
$items = $cleanLink;
return $items;
}
add_filter('woocommerce_account_menu_items', 'custom_add_my_account_menu_item');
function custom_my_account_endpoint_content() {
echo '<p>This is the content for the custom option.</p>';
}
add_action('woocommerce_account_custom_option_endpoint', 'custom_my_account_endpoint_content');