wp_login_form()

E gjeneron një formular të thjeshtë për login.

Rezultati:

<form name="loginform" id="loginform" action="http://wpcourse.test/wp-login.php" method="post">

    <p class="login-username">
        <label for="user_login">Username or Email Address</label>
        <input type="text" name="log" id="user_login" class="input" value="" size="20"/>
    </p>
    <p class="login-password">
        <label for="user_pass">Password</label>
        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20"/>
    </p>

    <p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever"/> Remember
        Me</label></p>
    <p class="login-submit">
        <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="Log In"/>
        <input type="hidden" name="redirect_to" value="http://wpcourse.test/sample-page/"/>
    </p>

</form>	

Referenca

All Rights Reserved Theme by 404 THEME.