• openlycreative

    (@openlycreative)


    I am trying to figure out how to disable the link on the login page that says “Register” without having to disable registration.

    Registration is for members of an organization only and I want to be able to keep people who are not members from registering, but I do not want to be responsible for registering them manually.

    I tried to go into the wp-login.php and removed the line

    <li><a>/wp-login.php?action=register"><?php _e('Register') ?></a></li>

    but the Register link is still visible. Any help would be appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • MichaelH

    (@michaelh)

    If you wanted to delete the Register link when using the WordPress Default 1.6 theme, you would delete <?php wp_register(); ?> in the wp-content/themes/default/sidebar.php file.

    Thread Starter openlycreative

    (@openlycreative)

    It is not the WordPress default theme, it is a custom theme.

    I am looking to remove the “register” link on the wp-login.php page specifically.

    MichaelH

    (@michaelh)

    Didn’t really test this, but using 2.3.1, in wp-login.php, I changed:
    Line 154 to:
    <?php if (get_option('users_can_register_xxx')) : ?>
    Line 377 to:
    <?php elseif (get_option('users_can_register_xxx')) : ?>

    Since changing core files is not recommended, remember you will need to make a change each time you upgrade.

    spotme10

    (@spotme10)

    I’d been looking for the answer to this question too! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable “Register” link without disabling registration’ is closed to new replies.