c_ws_plugin__s2member_mo_page_in
public class c_ws_plugin__s2member_mo_page_in
3.5
( 2 Methods ) Method Summary | |
---|---|
public static null | 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. |
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
3.5
add_action("init");
null - Or exits script execution after redirection w/ 301
status.
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
111101
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
.
bool - This function always returns true.
Membership Options Page (inner processing routines).