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'm not sure about the 'thanks' bit.
'coming back having performed outside' is the wordplay.
'coming back' is a reversal indicator.
'having' becomes 'ta' (I am not sure about this - if you are sure you should believe this answer much more).
'performed' becomes 'done' (done can mean performed or accomplished).
'outside' indicates putting letters inside (some letters go outside others).
'ta' in reverse letter order 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" .)