Title: Where is the Hook Function Template?
Last modified: August 31, 2016

---

# Where is the Hook Function Template?

 *  Resolved [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/)
 * PayPal IPN for WordPress looks like it is very flexible and relatively easy to
   use. But…
 * I don’t see the Hook Function Template anywhere in the code or in the PayPal 
   IPN table view or settings.
 * Where is the Hook Function Template?
 * [https://wordpress.org/plugins/paypal-ipn/](https://wordpress.org/plugins/paypal-ipn/)

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

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963179)
 * In your WordPress admin panel you will find PayPal IPNs on the left. Click into
   that to see the list of all the IPNs that have hit your site.
 * Click into an individual IPN record and you will see two sections: PayPal IPN
   Fields and Hook Function Snippet.
 * Click to view the Hook Function Snippet and that is where you will find the PHP
   code template you can use to hook into that particular IPN type.
 * I’m going to close this ticket, but let me know if you’re still unable to find
   it.
 *  Thread Starter [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963181)
 * In PayPal IPN, there are no IPNs that have hit my site: “No PayPal IPN found”
 * This is a fresh install. Why would I have IPNs hitting my site before I have 
   the back-end set up to properly handle them?
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963189)
 * Ok, well, you wouldn’t. You’ll need to configure IPN in the PayPal account to
   send IPNs to the URL the plugin provides. Then the data would get saved and you
   would see the IPN hook template in there.
 * Our [developer guide](https://www.angelleye.com/paypal-ipn-wordpress-developer-guide/)
   covers the basic format of the IPN hook template, so you could look at that and
   just build it based on that if you want to. The difference would be the code 
   snippet provided in each IPN you get would have all of the params for that individual
   IPN type ready to go.
 * You could just make a single hook template that prepares every single IPN param
   that could possibly be sent regardless of the type and then use that for every
   hook you build.
 *  Thread Starter [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963207)
 * So, the Hook Template isn’t available until there are IPNs that have already 
   been handled. Okay.
 * Would it be possible in future versions to just also simply provide a Catch-All
   Hook Template in a text file with the sources? Or, perhaps a text-based version
   in the documentation that allows for copy/paste?
 * That would be really handy.
 * Thank you.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963216)
 * Yes, I agree. I’ll make the snippet shown in the docs a text version instead 
   of a screenshot.
 * Keep in mind you can use the IPN Simulator that PayPal provides to send sample
   IPNs to your system so that you could then grab the hook template specific to
   that IPN type. The Simulator doesn’t provide IPNs for all types, unfortunately,
   but you could even run transactions in the sandbox to generate those IPNs so 
   you could see them, too.
 * Again, though, I will definitely get the documentation updated to included a 
   text snippet so you can copy/paste from there.
 * If you have a specific IPN type you’d like the hook template for right now I 
   could probably pull it out of my test server, which has loads of IPN types in
   it.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963220)
 * I updated the [documentation](https://www.angelleye.com/paypal-ipn-wordpress-developer-guide/)
   so it now has a text sample of the hook template for a cart IPN type, which wouldn’t
   cover every single param for all IPN types, but it covers most.
 *  Thread Starter [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963284)
 * That’s great, Andrew.
 * Thank you!
 * And, thanks for that handy tip about the PayPal IPN Simulator.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963317)
 * Happy to help! 🙂
 * If you have a moment to [leave a review for the plugin](https://wordpress.org/support/view/plugin-reviews/paypal-ipn)
   that would be greatly appreciated.

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

The topic ‘Where is the Hook Function Template?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-ipn_b2a7a0.svg)
 * [PayPal IPN for WordPress](https://wordpress.org/plugins/paypal-ipn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-ipn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-ipn/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-ipn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-ipn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-ipn/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/where-is-the-hook-function-template/#post-6963317)
 * Status: resolved