PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
Yea, I'll see what we can do about that. Not all "Registrations" are associated with a Paid Subscr. ID. However if/when they are, you can certainly use: get_user_option("s2member_subscr_id", %%user_id%%); as passed through by the Registration API Notification. If the value returned is non-zero, they ARE a paying Member, if it's empty, they're just registering for free ( i.e. Open Registration is enabled on the site ). When this value is non-zero, it WILL exactly match the value returned in the Signup Notification, so yes.tkittredge wrote:The name and email values return between signup and registration events are not necessarily the same.
Since in my scenario I am calling script to record the information from the two independent events as they naturally occur (subscription and registration events), we need a way to key the two datasets together.
Would <?php $subscr_id = get_user_option("s2member_subscr_id", %%user_id%%); ?> invoked as a result of the registration event be guaranteed to be the key against the %%subscr_id%% value returned with the signup event?
Shouldn’t %%subscr_id%% also be returned with the registration event by s2M?
T
$url = preg_replace ("/%%subscr_id%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($subscr_id)), $url);
http://example.com/my-script.php?user_id=%%user_id%%
<?php echo get_user_option("s2member_subscr_id", $_GET["user_id"]); ?>
Users browsing this forum: Google [Bot] and 1 guest