@adammontague
Could you please specify the exact name & location of the script/file where your script must be inserted?
“in your admin” is quite vague!
I wonder how other posters found that info, but they must have found it, since they reported the fix did work.