WordPress.org

Support

Support » How-To and Troubleshooting » How to hard code a specific user on wp-login?

How to hard code a specific user on wp-login?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Look in wp-login.php in your home directory.

    Find:

    <label><?php _e('Username or E-mail:') ?><br />
    		<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>

    Change:
    value="<?php echo esc_attr($user_login); ?>"

    Tp:
    value="guest"

    That might work…

    That did it! Actually, I went one step further and made an input type=”hidden” so users won’t even see anything other than the password field.

    Thanks for pointing me in the right direction!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to hard code a specific user on wp-login?’ is closed to new replies.
Skip to toolbar