Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Membership_Options_Page

s2member\includes\classes\mo-page-in.inc.php at line #28

Class c_ws_plugin__s2member_mo_page_in

c_ws_plugin__s2member_mo_page_in

public class c_ws_plugin__s2member_mo_page_in

Membership Options Page (inner processing routines).

Since:

3.5


( 2 Methods )
Method Summary
public static null

membership_options_page()

Forces a redirection to the Membership Options Page for s2Member.

public static bool

wp_redirect_w_mop_vars(str $seeking_type, str|int $seeking_type_value, str $req_type, str|int $req_type_value, str $seeking_uri, str $res_type)

Redirects to Membership Options Page w/ MOP Vars.

( 2 Methods )
Method Detail

s2member\includes\classes\mo-page-in.inc.php at line #47

membership_options_page()

public static null membership_options_page()

Forces a redirection to the Membership Options Page for s2Member.

This can be used by 3rd party apps that are not aware of which Page is currently set as the Membership Options Page. Example usage: http://example.com/?s2member_membership_options_page=1

Redirection URLs containing array brackets MUST be URL encoded to get through: wp_sanitize_redirect(). So we pass everything to urlencode_deep(), as an array. It handles this via _http_build_query(). See bug report here: http://core.trac.wordpress.org/ticket/17052

Since:

3.5

Attaches-to:

add_action("init");

Returns:

null - Or exits script execution after redirection w/ 301 status.

[ back to top ]

s2member\includes\classes\mo-page-in.inc.php at line #85

wp_redirect_w_mop_vars()

public static bool wp_redirect_w_mop_vars(str $seeking_type, str|int $seeking_type_value, str $req_type, str|int $req_type_value, str $seeking_uri, str $res_type)

Redirects to Membership Options Page w/ MOP Vars.

Redirection URLs containing array brackets MUST be URL encoded to get through: wp_sanitize_redirect(). So we pass everything to urlencode_deep(), as an array. It handles this via _http_build_query(). See bug report here: http://core.trac.wordpress.org/ticket/17052

Since:

111101

Parameters:

str $seeking_type - Seeking content type. One of: post|page|catg|ptag|file|ruri.

str|int $seeking_type_value - Seeking content type data. String, or a Post/Page ID.

str $req_type - Access requirement type. One of these values: level|ccap|sp.

str|int $req_type_value - Access requirement. String, or a Post/Page ID.

str $seeking_uri - The full URI that access was attempted on.

str $res_type - Restriction type that's preventing access. One of: post|page|catg|ptag|file|ruri|ccap|sp|sys. Defaults to $seeking_type.

Returns:

bool - This function always returns true.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail