Hi,
To extract an object from the listing context, you need to use the same hook, but add /blocks
at the end, then the second argument of the function is a template, and you can $template->get_context('listing')
, and then $listing->get_vendor__name()
.