Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Last active February 19, 2022 13:41
Show Gist options
  • Save lucianobragaweb/7739533 to your computer and use it in GitHub Desktop.
Save lucianobragaweb/7739533 to your computer and use it in GitHub Desktop.
Função para gerar o formulário de Login no Wordpress
<?php function myLoginForm() { ?>
<h1>Login</h1>
<div class="flb-login_form">
<form class=" flb-login_form" action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
<fieldset>
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" />
</fieldset>
<fieldset>
<input type="password" name="pwd" id="pwd" size="20" />
</fieldset>
<input class="bt-verde" type="submit" name="submit" value="Entrar" class="button" />
<p>
<label for="rememberme">
<input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" />Lembrar-me</label>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
</p>
</form>
<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Perdeu sua Senha?</a>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment