Locke, a midfielder, went to Lasswade Primary and High School[1] in Bonnyrigg and started his career at Hearts before joining Bradford City in January 2001 who were at the time in the Premier League.
[7] Hearts entered administration in June 2013, which meant that the club were placed under a transfer embargo and were deducted 15 points in the 2013–14 Scottish Premiership season.
On 11 August 2013, Locke won the first Edinburgh derby in the new Scottish Premiership with a 76-minute header from striker Callum Paterson at Tynecastle Stadium.
[13] Following the departure of Ray McKinnon to Dundee United, Locke was appointed manager of Scottish Championship side Raith Rovers in May 2016, signing on a two-year deal.
[16] After helping Cowdenbeath avoid a third successive relegation by winning a playoff with East Kilbride, Locke left the club during the close season to take an ambassadorial role with Hearts.