Also there were claims starting in the 50s where planarians were taught a maze or to respond to certain stimuli and then fed to other planarians and that the trait would sometimes transfer as well. I don't know if any of those studies were reproduced, thus the claims might be dubious, but it would be interesting if they were true.
[0] https://www.smithsonianmag.com/science-nature/these-decapita...