Ultra Sun and Ultra Moon keep Sun and Moon’s Festival Plaza trading — there is no link code. A Link Trade connects you with a player on your Guest List, nearby once the 3DS servers closed in April 2024.
How to trade in Ultra Sun & Ultra Moon
Enter the Festival Plaza.
Choose Trade, then Link Trade.
Select the player on your Guest List and the Pokémon to send.