Use this action to execute custom code after a user checks out, before any emails are sent. This hook passes the WordPress user’s id number and the membership order number.

do_action( 'pmpro_after_checkout', int $user_id, MemberOrder object $morder );


int; the ID of the user that custom code will be executed to, after check out, before any emails are sent out.
MemberOrder object



View in Source Code

Related Articles and Recipes

Membership Checkout Notification Methods via Apps, Text Message or Slack By Kimberly Coleman

Using Subscription Delays Add On for One-Time, Credit Card Required Trials By Kimberly Coleman

Award MyCRED Points for Membership By Andrew Lima

Set Display Name for BuddyPress Profile at Membership Checkout By Kimberly Coleman

Send Members an Additional Invoice via Email after Membership Checkout By Travis Lima

Track Membership Signups and Stats on a Mobile Device By Kimberly Coleman

Restrict Discount Code Usage to One Time Per User By Kimberly Coleman

Non-US Taxes with Paid Memberships Pro By Jason Coleman

About Actions and Filters in PMPro

Hooks allow you to extend Paid Memberships Pro without editing any core plugin files. You can use a hook to program custom code that interacts with or modifies code in our plugin, Add Ons, your theme, and even WordPress itself.

There are two kinds of hooks: actions and filters.

  • Action hooks allow you to run new custom code at pre-defined locations.
  • Filter hooks allow you change or extend existing code by modifying the data and returning it back to the software.

Click here to browse the full database of action and filter hooks available in Paid Memberships Pro. For help extending our Add Ons, refer to the individual Add On's documentation page for a list of available hooks.

For more developer-focused information about Paid Memberships Pro, check out the advanced developer topics documentation.

Was this article helpful?