edds_get_stripe_customer_id( int $id_or_email, bool $by_user_id = true )
Look up the stripe customer id in user meta, and look to recurring if not found yet
Description Description
Parameters Parameters
- $id_or_email
-
(Required) The user ID, customer ID or email to look up.
- $by_user_id
-
(Optional) If the lookup is by user ID or not.
Default value: true
Return Return
(string) Stripe customer ID
Source Source
File: includes/gateways/stripe/includes/functions.php
Changelog Changelog
Version | Description |
---|---|
2.6 | Added lazy load for moving to customer meta and ability to look up by customer ID. |
2.4.4 | Introduced. |