Custom Field Preview Plugin stopped working after Kirby upgrade (3.8)

I’ve posted a solution here.