Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Membership_Options_Page

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

Class c_ws_plugin__s2member_mo_page

c_ws_plugin__s2member_mo_page

public class c_ws_plugin__s2member_mo_page

Membership Options Page.

Since:

3.5


( 2 Methods )
Method Summary
public static null|inner

membership_options_page()

Forces a redirection to the Membership Options Page for s2Member.

public static inner

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.inc.php at line #43

membership_options_page()

public static null|inner 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

Since:

3.5

Attaches-to:

add_action("init");

Returns:

null|inner - Return-value of inner routine.

[ back to top ]

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

wp_redirect_w_mop_vars()

public static inner 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.

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:

inner - Return-value of inner routine.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail