I have put this coding in my child function.php now I am having an issue when the status change to complete email not being sent to customer.
function expire_