If want to use the Activity API, the custom flow actions and triggers, or a code snippet, you’ll have to add custom code to your WordPress install.
Using a code snippets plugin
Using a code snippets plugin is the fastest and easiest way to start adding custom code to your WordPress. We recommend using the WPCode plugin or the Code Snippets plugin. Both offer sufficient free versions that will allow you to add custom PHP code to WordPress.
With both plugins, you can install them, create a new snippet, save and activate it to instantly start running your custom code.

These plugins also have built-in error handling, so if you make a mistake it’s unlikely to crash your site.
Using a custom plugin
Using a custom plugin is the best choice if you want to reduce the number of menu items or plugins running on your site. It’s the most lightweight option for running custom code. However, we don’t recommend using this method unless your a competent developer, or are working with a competent developer as making mistakes in a custom plugin can and has crash a site.
To get started, download our boilerplate plugin file here.
Unzip the plugin file.
You can then add your PHP code to the groundhogg-mods.php file inside the unzipped folder.
Re-zip the folder.
Upload the zipped plugin folder as a plugin to your WordPress site and activate it.
Your custom code should now be running!

To make additional modifications, you can either use the plugin file editor feature in WordPress (dangerous) or you can follow the initial procedure and re-upload the plugin file with your modifications (safest).
In your child theme’s functions.php file
Traditionally this has been the place to add custom code. It requires that you’re running a child or custom theme that is not automatically updated, as when themes are updated any modifications are erased.
If you’re not using a custom or child theme, use one of the other options.
Was this helpful?
Let us know if this document answered your question. That’s the only way we can improve.

