intersynergy-login-plugin.php
/**
     * Returns the URL to which the user should be redirected after the (successful) login.
     *
     * @param string           $redirect_to           The redirect destination URL.
     * @param string           $requested_redirect_to The requested redirect destination URL passed as a parameter.
     * @param WP_User|WP_Error $user                  WP_User object if login was successful, WP_Error object otherwise.
     *
     * @return string Redirect URL
     */
Returns the URL to which the user should be redirected after the (successful) login.
@param string           $redirect_to           The redirect destination URL.
@param string           $requested_redirect_to The requested redirect destination URL passed as a parameter.

@return string Redirect URL
Returns the URL to which the user should be redirected after the ( successful ) login . @param string $redirect_to The redirect destination URL . @param string $requested_redirect_to The requested redirect destination URL passed as a parameter . @return string Redirect URL
public function redirect_after_login($redirect_to, $requested_redirect_to, $user)
    {
        $redirect_url = home_url();
        if (! isset($user->ID)) {
            return $redirect_url;
        }
        if (user_can($user, 'manage_options')) {
            if ($requested_redirect_to == '') {
                $redirect_url = admin_url();
            } else {
                $redirect_url = $requested_redirect_to;
            }
        } else {
            $redirect_url = home_url($this->pageSlug['member-account']);
        }
        return wp_validate_redirect($redirect_url, home_url());
    }
public function redirect_after_login ( $ redirect_to , $ requested_redirect_to , $ user ) { $ redirect_url = home_url ( ) ; if ( ! isset ( $ user -> ID ) ) { return $ redirect_url ; } if ( user_can ( $ user , 'manage_options' ) ) { if ( $ requested_redirect_to == '' ) { $ redirect_url = admin_url ( ) ; } else { $ redirect_url = $ requested_redirect_to ; } } else { $ redirect_url = home_url ( $ this -> pageSlug [ 'member-account' ] ) ; } return wp_validate_redirect ( $ redirect_url , home_url ( ) ) ; }
Returns the URL to which the user should be redirected after the (successful) login.
Returns the URL to which the user should be redirected after the ( successful ) login .
// Use the redirect_to parameter if one is set, otherwise redirect to admin dashboard. // Non-admin users always go to their account page after login