• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Replies /

Reply To: Action Hook not working.

· ·

Home › Forums › Stripe Payments Plugin › Action Hook not working. › Reply To: Action Hook not working.

April 16, 2018 at 5:55 pm #655
Admin
Keymaster

That action hooks passes 2 arguments to the callback function. So make sure to catch it like the following example:


add_action ('asp_stripe_payment_completed', 'execute_my_custom_code', 10, 2);

function execute_my_custom_code ($post_data, $charge) {
    //Do stuff here
}

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.