c_ws_plugin__s2member_login_redirects
public class c_ws_plugin__s2member_login_redirects
3.5
( 5 Methods ) Method Summary | |
---|---|
public static str|bool | fill_login_redirect_rc_vars(str $url, obj $user, bool $root_returns_false) Fills Replacement Codes in Special Redirection URLs. |
public static null | login_redirect(str $username, WP_User $user) Handles login redirections. |
public static str|bool | login_redirection_uri(obj $user, bool $root_returns_false) Parses a Special Login Redirection URI. |
public static str|bool | login_redirection_url(obj $user, bool $root_returns_false) Parses a Special Login Redirection URL. |
public static WP_User|WP_Error | ms_wp_authenticate_user(bool $user_or_wp_error, WP_User|WP_Error $Expects) Assists in multisite User authentication. |
public static str|bool fill_login_redirect_rc_vars(str $url, obj $user, bool $root_returns_false)
Fills Replacement Codes in Special Redirection URLs.
3.5
str $url - A URL with possible Replacement Codes in it.
obj $user - Optional. A WP_User
object. Defaults to the current User, if logged-in.
bool $root_returns_false - Defaults to false. True if the function should return false when a URL is reduced to the site root.
str|bool - A Special Login Redirection URL with Replacement Codes having been parsed, or false if $root_returns_false = true
and the URL is the site root.
public static null login_redirect(str $username, WP_User $user)
Handles login redirections.
3.5
add_action("wp_login");
str $username - Expects Username.
WP_User $user - Expects a WP_User object instance.
null - Or exits script execution after a redirection takes place.
public static str|bool login_redirection_uri(obj $user, bool $root_returns_false)
Parses a Special Login Redirection URI.
3.5
obj $user - Optional. A WP_User object. Defaults to the current User, if logged-in.
bool $root_returns_false - Defaults to false. True if the function should return false when a URI is reduced to the site root.
str|bool - A Special Login Redirection URI with Replacement Codes having been parsed, or false if $root_returns_false = true
and the URI is the site root.
public static str|bool login_redirection_url(obj $user, bool $root_returns_false)
Parses a Special Login Redirection URL.
3.5
obj $user - Optional. A WP_User object. Defaults to the current User, if logged-in.
bool $root_returns_false - Defaults to false. True if the function should return false when a URL is reduced to the site root.
str|bool - A Special Login Redirection URL with Replacement Codes having been parsed, or false if $root_returns_false = true
and the URL is the site root.
public static WP_User|WP_Error ms_wp_authenticate_user(bool $user_or_wp_error, WP_User|WP_Error $Expects)
Assists in multisite User authentication.
130405
add_filter("wp_authenticate_user");
WP_User|WP_Error $Expects - either a WP_User or WP_Error object passed in by the Filter.
WP_User|WP_Error - WP_User or WP_Error object (if there was a problem).
Login redirections.