In LEGO Harry Potter: Years 1–4, the Leaky Cauldron hub unlocks automatically after completing the first story level:
The hub then becomes accessible from the main menu / Diagon Alley entrance. It serves as the central gateway to all years, levels, character customization, and extras.