Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Registrations

s2member\includes\classes\register-access.inc.php at line #28

Class c_ws_plugin__s2member_register_access

c_ws_plugin__s2member_register_access

public class c_ws_plugin__s2member_register_access

Registration Access Links.

Since:

3.5


( 3 Methods )
Method Summary
public static null

reg_access_link_via_ajax()

Generates Registration Access Links via AJAX.

public static array|bool

reg_cookies_ok()

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.

( 3 Methods )
Method Detail

s2member\includes\classes\register-access.inc.php at line #71 public static null reg_access_link_via_ajax()

Generates Registration Access Links via AJAX.

Since:

3.5

Attaches-to:

add_action("wp_ajax_ws_plugin__s2member_reg_access_link_via_ajax");

Returns:

null - Exits script execution after output is generated for AJAX caller.

[ back to top ]

s2member\includes\classes\register-access.inc.php at line #96

reg_cookies_ok()

public static array|bool reg_cookies_ok()

Checks registration cookies.

Since:

110707

Returns:

array|bool - An array of cookies if they're OK, else false.

[ back to top ]

s2member\includes\classes\register-access.inc.php at line #43 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.

Since:

3.5

Parameters:

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.

Returns:

str|bool - A Registration Access Link on success, else false on failure.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail