• Hi

    I am at my wits end. I have gone through all the posts in the forum with this topic but none work.

    All I want to do is remove the Register link from the bottom of the wp-login page.

    I am using S2 member and even though I have unchecked the “Anyone can register” box in General – Options it still shows the link.

    My guess is that S2 member is writing the code for it.

    Please help

    G

Viewing 6 replies - 1 through 6 (of 6 total)
  • add the following to your themes functions.php file:

    add_action( 'login_head', 'hide_login_nav' );
    
    function hide_login_nav()
    {
        ?><style>#nav{display:none}</style><?php
    }

    Love this thank you!

    This really does the trick. For some reason my theme had it hard coded in too.

    You might want to check that the register link:

    /wp-login.php?action=register

    actually doesn’t work (since you’re just hiding the link). It won’t be hard for bots to find the hidden link (they probably already know this one).

    I’ve used S2 Member before, but I truthfully don’t recall how it works in that regard. Seems like there was an “Allow Open Registration” option in the S2 Member admin section.

    Hmmm!

    Thought I was all finished – Just set it and forget it. – Thanks!

    Here what I did: Made the page password protected –
    Now if you go to that URL it reloops back to the home page.
    The code only took away the name/link – was still active

    Also went into: Settings/General/Deselect anyone can register

    Do you think all the backdoors are secure now, or was something else missed?

    Thanks Scriptrunner –

    You might try this option,

    In the newer version of WordPress you can go to wp-login.php page and look for the following line:

    // validate action so as to default to the login screen
    if ( !in_array( $action, array( ‘postpass’, ‘logout’, ‘lostpassword’, ‘retrievepassword’, ‘resetpass’, ‘rp’, ‘register’ ‘login’ ), true ) && false === has_filter( ‘login_form_’ . $action ) )
    $action = ‘login’;

    Now just remove the ‘register’

    Hope that helps

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove "Registration" link from wp-login page’ is closed to new replies.