c_ws_plugin__s2member_register_access
public class c_ws_plugin__s2member_register_access
3.5
( 3 Methods ) Method Summary | |
---|---|
public static null | Generates Registration Access Links via AJAX. |
public static array|bool | Checks registration cookies. |
public static str|bool | register_link_gen(str $subscr_gateway, str $subscr_id, str $custom, int|str $item_number, bool $shrink) Generates Registration Access Links. |
public static null reg_access_link_via_ajax()
Generates Registration Access Links via AJAX.
3.5
add_action("wp_ajax_ws_plugin__s2member_reg_access_link_via_ajax");
null - Exits script execution after output is generated for AJAX caller.
public static array|bool reg_cookies_ok()
Checks registration cookies.
110707
array|bool - An array of cookies if they're OK, else false.
public static str|bool register_link_gen(str $subscr_gateway, str $subscr_id, str $custom, int|str $item_number, bool $shrink)
Generates Registration Access Links.
3.5
str $subscr_gateway - Payment Gateway associated with a Customer.
str $subscr_id - Unique Subscr. ID associated with Payment Gateway; associated with a Customer.
str $custom - Custom String value (as supplied in Shortcode); must start with installation domain name.
int|str $item_number - An s2Member-generated item_number
( i.e. 1
for Level 1, or level|ccaps|fixed-term
, or sp|ids|expiration
).
bool $shrink - Optional. Defaults to true. If false, the raw registration link will NOT be reduced in size through the tinyURL API.
str|bool - A Registration Access Link on success, else false on failure.
Registration Access Links.