I created my own separate plugin that I use to house scripts that I use to affect core files rather than editing the core files themselves. So in the code example above it would start and end with opening and closing php tags.
The problem is that this isn’t working. Clicking on the ACF checkbox does not unhide the div like I had hoped. Is there a specific place I should put the above code? Please help.