A wedding invitation QR code usually does one of two jobs: send guests to a website with the full details, or open something they can act on immediately, like a map location or an RSVP.

The two common choices
A website QR works best if you've built (or had someone build) an event page with schedule, dress code, gift registry, and directions all in one place — the QR just needs to get people there. A Wi-Fi QR for the venue's guest network is a nice touch for a reception where guests will be filming and posting.
Keep it legible on paper stock
Wedding invitations often use textured or colored card stock, which is exactly the situation that breaks low-contrast QR codes. Stick to a dark code on a plain white or very light patch — check the contrast rule in our QR color guide before matching the QR to your color scheme.
Print size on an invitation
At normal reading distance (a guest holding the card in hand), 2.5×2.5 cm is comfortable. Smaller works but forces people to bring the card close to their phone camera, which some older guests find awkward.
Test before the print run
This matters more than usual — wedding invitations aren't something you casually reprint. Test-scan the actual card stock before ordering the full batch.