Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom login page #2

Open
Triloworld opened this issue Oct 8, 2021 · 2 comments
Open

Custom login page #2

Triloworld opened this issue Oct 8, 2021 · 2 comments

Comments

@Triloworld
Copy link

When I set custom page then redirect not occur when I try back. Propose to set redirection to dashboard on login form as user is logged (cookies set manually don't fire that action)

        if (is_user_logged_in()) {
            wp_redirect( get_site_url().'/wp-admin/' );

            return;
        }
@andrewheberle
Copy link
Owner

Hi @Triloworld

I have made lots of changes by running some GitHub actions to check code against WordPress Coding Standards so the code has moved around a fair bit, so I wonder if you can lodge a PR for this change please?

Now that the code is on GitHub this should be easier.

Thanks

@Triloworld
Copy link
Author

Hi @andrewheberle
I will gladly contribute. Give me time and I will create pull request about It. Will test to ensure proper solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants