Reply To: Using "Simple PHP" plugin generates errors

Home Forums Support Using "Simple PHP" plugin generates errors Reply To: Using "Simple PHP" plugin generates errors

#208592
Tom
Lead Developer
Lead Developer

Calling a function directly in that file will cause errors, as that file is for defining functions, or hooking them into the template.

If you define a function in there, you need to then call that function inside a template file, inside a function which hooks it into the template (my example), or in GP Hooks.

Hope this helps 🙂