Give thanks when coming back, having performed outside (6)
I believe the answer is:
donate
'give thanks' is the definition.
'donate' can be an answer for 'give' (donating is a kind of giving). I am not certain of the 'thanks' bit.
'coming back having performed outside' is the wordplay.
'coming back' says the letters should be written in reverse.
'having' becomes 'ta' (I can't explain this - if you can you should give a lot more credence to this answer).
'performed' becomes 'done' (done can mean performed or accomplished).
'outside' indicates putting letters inside (some letters go outside others).
'ta' backwards is 'at'.
'at' inserted inside 'done' is 'DONATE'.
'when' is the link.
Can you help me to learn more?
(Other definitions for donate that I've seen before include "Atoned (anag)" , "Give freely, maybe blood" , "Give (eg to charity)" , "Give (money) to a good cause" , "give in kindness" .)