Photo: Allen Berezovsky/WireImage

LOS ANGELES, CA - MARCH 10: Actor Jesse Tyler Ferguson (L) and actress Sarah Hyland attend the Lakers Casino Night fundraiser benefiting the Lakers Youth Foundation at Club Nokia on March 10, 2013 in Los Angeles, California. (Photo by Allen Berezovsky/WireImage)

A consummate professional,Jesse Tyler Fergusonstepped in to fill hisModern FamilycostarTy Burrell’s role when Burrell had a last-minute conflict. The role in question: officiating their costarSarah Hyland’sAugust 2022 weddingtoWell Adams.

“Hehad a family emergency, so I was his understudy,” Ferguson, 47, said onThe Jennifer Hudson ShowWednesday.

Only having a matter of days to prepare worried thefather of two.

“It came down like, 10 days before the wedding. I did not have any notice,” Ferguson lamented. “And you can’t say ‘no.’ She already knew I was going to the wedding, so it’s like it’d be like, ‘Oh, I’m busy that weekend. I couldn’t get out of it.”

He pushed through because of his love of Hyland, 32. “I adore Sarah, so I was like,This means a lot that she’s asking me to do this, but it’s a lot of pressure,” theDinner’s on Mepodcast host said.

JC Olivera/Getty Amy Sussman/Getty

INGLEWOOD, CALIFORNIA - JANUARY 18: Actor Ty Burrell attends iHeartRadio ALTer EGO presented by Capital One at The Forum on January 18, 2020 in Inglewood, California. (Photo by JC Olivera/Getty Images); LOS ANGELES, CALIFORNIA - AUGUST 29: Jesse Tyler Ferguson attends Netflix’s “Ivy and Bean” Los Angeles premiere at Harmony Gold on August 29, 2022 in Los Angeles, California. (Photo by Amy Sussman/Getty Images)

Ferguson owned up to feeling nervous ahead of Adams and Hyland’s big day.

“It’s not just like a regular wedding, it’s a wedding that’s like, has paparazzi, helicopters flying above us. It’s going to be inVoguemagazine,” Ferguson said. “I’m like,Jeez, can I start with maybe a low-profile one?No! Right to the top!”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories

Being thrown into the deep end of wedding officiating allowed Ferguson to sharpen his skills fast, and he quipped, “I’m very good now, so if anyone needs anything….”

Hudson, 41, joked that the actor “could marry anybody at this point.”

“Our wedding truly would not have been as special without you,” the actress captioned a video from her wedding ceremony.

In the video, Ferguson can be seen referencing theBachelorfranchise in which Adams, 39, appeared.

“This is the final rose ceremony,” Ferguson joked as he started the ceremony, earning a laugh from both bride and groom as well as many of the guests. Ferguson also deemed himself “Reverend Jesse Tyler Ferguson.”

Ferguson and Hyland’sModern FamilycostarsJulie Bowen,Nolan Gould,Sofia VergaraandAriel Winteralso attended the nuptials that took place at California vineyard.

“I’ve known Jesse since I was 18 years old. I remember his first date with his husband Justin,” Hyland toldVogue, referring to Ferguson’s husbandJustin Mikita. “So we’ve been through so much. Jesse and Justin and Wells and I have traveled together, just the four of us. So it was really special to have him up there.”

source: people.com