Hi, Where’s the best place to put the code for a php function that will be used on every page? In a code block on each page, or in the functions.php file in the child theme? Or is there somewhere else that the code could be placed?
Thanks in advance
This or in a code plugin such as wpcodebox or similar
Thank you, I’ll put it in the functions.php file.
I use a plugin like wpcodebox (before) or FluetSnippets (now) because they protect the site from crashing in case that the code has an error.
Cheers
Patric