The match will be played at Tynecastle Park on Saturday, July 23 with a 3pm kick-off as Robbie Neilson’s men continue their pre-season preparations ahead of the new campaign, which will begin a week later with the visit of Ross County in the cinch Premiership.
Stoke are managed by former Hibs winger and Northern Ireland international boss Michael O’Neill, who lives on the outskirts of Edinburgh and was in attendance at the 3-1 defeat to Rangers on the final day of the 2021/22 league season.
Locke has been employed by Hearts as the club’s principal ambassador since returning in 2017, three years after he was sacked as manager following the takeover by Ann Budge with Craig Levein and Robbie Neilson being instilled as director of football and head coach, respectively.
Hearts to sign new forward with Stephen Kingsley set to return
Predicted Hibs starting XI for Livingston clash - with post-derby decisions to make for Hibs boss
Hearts' European opponents confirmed as former Tynecastle winger prepares to return
Predicted Hearts XI for visit of Dundee United - with huge clash against Zurich in manager's mind
Zurich v Hearts live on TV as Europa League play-off tie is beamed back to Scotland
The 46-year-old previously starred for his boyhood heroes after coming through the ranks in Gorgie. He made 189 appearances between 1993 and 2001.
Locke, at the tender age of 20, led out Hearts as captain for the 1996 Scottish Cup final to Rangers. Unfortunately, he suffered a terrible knee injury just a few minutes into the game and would battle fitness issues the rest of his career.
He would come back as a coach under Jim Jefferies and Billy Brown when the pair returned to manage the club between January 2010 and August 2011.
Locke remained as part of Paulo Sergio’s staff as the club defeated Hibs 5-1 in the 2012 Scottish Cup final. He remained on staff following Sergio’s exit and succeeded John McGlynn as boss the following year.