Adding Custom Functions to WP Simple Pay - WP Simple Pay Documentation
  1. Home
  2. Advanced
  3. Adding Custom Functions to WP Simple Pay

Adding Custom Functions to WP Simple Pay

This article details adding custom code to your WordPress site and is intended for developers. Although we don’t provide custom development services ourselves, if you need help we highly recommend Codeable.

Please note: Custom code snippets are provided as-is and there is no guarantee they will continue to work across multiple versions of WP Simple Pay.

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.

  1. Edit your theme’s functions.php file.
  2. Create a custom functional plugin.
  3. 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.

Was this article helpful?

Still stuck? How can we help?
Updated on January 13, 2021