Yes. Create a copy of the function and use it here.
What you seem to want is a workaround. That works fine in the short run, but causes lots of trouble in the long run as everything becomes very unpredictable.
Yes you’d need to copy it. I would put it below the original function, so they are close together.
And indeed, Dreamweaver really is old school. Have you ever considered an alternative, like PHPStorm (paid) or VS Code (free)? Both are very good at editing PHP files. VS Code needs a few plugins to get real good, but is already better than Dreamweaver out of the box.
Thanks for the reply. I copied it and added it to the files that I am editing rather than under the current one. Is it better to have it in one place, i.e under the other one?
I have used PHP Storm in the past but I am so used to Dreamweaver, I just stuck to that.
What plugins should I add to VS Code? Also, I guess it has a similar function to Dreamweaver that lets you upload. DW uses CTRL+SHIFT+U.
The best place to put it is the first place where you would go looking for it if you didn’t know where it was. In general code is read way more than it is written, so if you want to optimize your use of time, you’d better make sure it’s easy to read.