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 full order object.

do_action( 'pmpro_after_checkout', $user_id, $morder );

Parameters

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

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/checkout.php

View in Source Code

Related Articles and Recipes

Methods to Calculate and Apply Taxes with Paid Memberships Pro By Jason Coleman

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


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 to 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?
YesNo