Do you need to add specific functionality to your WP Simple Pay payment forms not available in the plugin settings? With the various action and filter hooks available you can oftentimes accomplish what you need if you’re familiar with writing PHP code.
Before you make any modifications, we strongly recommend backing up your site. We also urge you to test any modifications on a staging or local development site before deploying to your live server. If you can’t access your WordPress admin, you can also deactivate all plugins via FTP/SFTP.
There are a few ways you can add custom PHP functions to your WordPress site. They each have pros and cons and come down to the preference of the developer.
- Edit your theme’s functions.php file.
- Create a custom functional plugin.
- Add code using the 3rd party My Custom Functions plugin.
Note we do not recommend altering WP Simple Pay code directly as it will be overwritten with any plugin update.
Is there a place in our code that we could add another hook that would be useful to you? Please let us know.