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, $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

Source

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

View in Source Code

Related Articles and Recipes

Award MyCRED Points for Membership By Kimberly Coleman

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

Send members an additional invoice via email after Membership Checkout By Kimberly Coleman

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

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

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