I would like to show a list of all the site URL’s that my clients have. So when a user logs in it will show all hist site url or dashboard links. And I like to show it in the main site. I am building a custom user dashboard. So not in the main sites admin dashboard. It disabled. On the main site, my clients only get access to the front end.
I found the following solution
https://stackoverflow.com/questions/52491770/get-user-subsite-multisite-url-in-wordpress
They mentioned there is a new way to get the current user ID, and to get the site URL, that you should use. I do not know what is the new way. so I want to avoid using this old way. He refers in 2018 to a new way