Title: Actions / Hooks
Last modified: March 7, 2023

---

# Actions / Hooks

 *  Resolved [Jakson](https://wordpress.org/support/users/jaskon/)
 * (@jaskon)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/actions-hooks/)
 * Hey guys, awesome plug!
 * Are there any hooks we can plumb into after a user makes a purchase?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Adam @ WPCrafter](https://wordpress.org/support/users/wpcrafter/)
 * (@wpcrafter)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/actions-hooks/#post-16541444)
 * Thank you.
 * And yes we have dev docs and api docs. Some developers are doing cool things 
   with them.
 * **Dev** [https://developer.surecart.com/](https://developer.surecart.com/)
   **
   API** [https://api-docs.surecart.com/](https://api-docs.surecart.com/)
 * Hopefully that gets there.
 *  Thread Starter [Jakson](https://wordpress.org/support/users/jaskon/)
 * (@jaskon)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/actions-hooks/#post-16541702)
 * Thanks Adam – Super detailed docs!
 * Think I found the page where they’ll be here right? – [https://developer.surecart.com/docs/events/actions](https://developer.surecart.com/docs/events/actions)
 * The cupboard is bare for now but assume this is where you’ll list all the actions?
 * Basically looking for SureCart’s equivalent of woo’s “woocommerce_order_status_completed”
 * Edit! Found it now! [https://developer.surecart.com/docs/events/Actions/order-actions](https://developer.surecart.com/docs/events/Actions/order-actions)
    -  This reply was modified 3 years, 2 months ago by [Jakson](https://wordpress.org/support/users/jaskon/).
 *  Plugin Author [Andre Gagnon](https://wordpress.org/support/users/2winfactor/)
 * (@2winfactor)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/actions-hooks/#post-16541710)
 * Hi Jackson!
   Happy to help here! It sounds like you want to use our purchase hooks(`
   surecart/purchase_created`). This is triggered for each product in an order.We
   abstract away many of the complexities that can come with integrating with an
   ecommerce platform. Instead of needing to keep track of subscription changes,
   order statuses, refunds and any other types of actions that can affect “access”
   to a purchase, we instead abstract them to a purchase model. You can read more
   about these, here: [https://developer.surecart.com/docs/guide/purchase-integrations/overview](https://developer.surecart.com/docs/guide/purchase-integrations/overview)
   Can you give me a bit more info on what you want to accomplish? I’m happy to 
   help get you in the right direction.
 *  Thread Starter [Jakson](https://wordpress.org/support/users/jaskon/)
 * (@jaskon)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/actions-hooks/#post-16541712)
 * All good Andre, thanks!
 * [https://developer.surecart.com/docs/events/Actions/order-actions](https://developer.surecart.com/docs/events/Actions/order-actions)
 *  [Rob @ 5 Star Plugins](https://wordpress.org/support/users/5starplugins/)
 * (@5starplugins)
 * [3 years ago](https://wordpress.org/support/topic/actions-hooks/#post-16731144)
 * [@jaskon](https://wordpress.org/support/users/jaskon/) Are there any sample PHP
   code for using these hooks, to get customer name, email, and order fields, etc?
   An example PHP client library for the API? The dev docs are very sparse.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Actions / Hooks’ is closed to new replies.

 * ![](https://ps.w.org/surecart/assets/icon-256x256.gif?rev=3285224)
 * [SureCart - Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments](https://wordpress.org/plugins/surecart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/surecart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/surecart/)
 * [Active Topics](https://wordpress.org/support/plugin/surecart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/surecart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/surecart/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Rob @ 5 Star Plugins](https://wordpress.org/support/users/5starplugins/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/actions-hooks/#post-16731144)
 * Status: resolved