# Homing X and Y after stopping print through display

How can I include homing X and Y of a Marlin firmware operating printer after I press the stop printing in the display?

In which folder I need include the command?

It's EVENT_GCODE_SD_STOP in the configuration_adv.h file.