WP Simple Pay: Create WordPress User After Payment
/** * @link https://library.wpcode.com/snippet/3234p8or/ * * @param \Stripe\Event $event Stripe Event. * @param \Stripe\Subscription|\Stripe\PaymentIntent $object Stripe Subscription or PaymentIntent */ function simpay_custom_create_user( $event, $object ) { $email_address = $object->customer->email; // Don’t create duplicate records. if ( false !== username_exists( $email_address…Continue reading