How To Safely Add PHP Code To WordPress

A common question is where to put small snippets of PHP that make small modifications to other plugins, such as Events Manager. There’s three recommended ways, each have their pros and cons.