Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login/Register Page redirecting to WP-Admin Page


  • funambulist
    Participant

    @funambulist

    Hi Everyone!

    Need a little help regarding bbpress plugin.

    Whenever a visitor clicks on Login/Register Page without populating the credential it’s leading to WP-admin page instead of visitor’s login/registration page.

    Can anyone please help?

    I’m using WordPress. com + OceanWP + bbpress + Elementor
    Error Page’s Link: https://www.swamonk.com/forums/topic/testing-topic/
    Thanks in Advance 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

  • BetVision
    Participant

    @betvisionvn

    Thank you
    BetVision


    theicebooky
    Participant

    @theicebooky

    I added this code to my website and it worked before 🙂

    add_action( ‘wp_login_failed’, ‘my_front_end_login_fail’ ); // hook failed login

    function my_front_end_login_fail( $username ) {
    $referrer = $_SERVER[‘HTTP_REFERER’]; // where did the post submission come from?
    // if there’s a valid referrer, and it’s not the default log-in screen
    if ( !empty($referrer) && !strstr($referrer,’wp-login’) && !strstr($referrer,’wp-admin’) ) {
    wp_redirect( $referrer . ‘?login=failed’ ); // let’s append some information (login=failed) to the URL for the theme to use
    exit;
    }
    }

    However, the website would just reload again without informing the user that the password is wrong. If anyone can do that, it would be very nice to let me know to!!


    918kissvv
    Participant

    @918kissvv

    ✨918 KissV.com Have free credit for plays slots.
    🎊Free none stop.✨📱Easy gets real money💸
    📌 Register in this link.
    Line: @918kissv1 (Don’t forget@)


    918kissvv
    Participant

    @918kissvv

    ✨918 KissV.com Have free credit for plays slots.
    🎊Free none stop.✨📱Easy gets real money💸
    📌 Register in this link.
    Line: @918kissv1 (Don’t forget@)


    theicebooky
    Participant

    @theicebooky

    Does it work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar