How to make the register template in WordPress?
<?PHP
/*
Template Name: Registration Page
*/
get_header();
?>
<?php do_action ('process_customer_registration_form'); ?><!-- the hook to use to process the form -->
<form method="POST" id="adduser" class="user-forms" action="">
<strong>Name</strong>
<p class="form-username">
<label for="user_name"><?php echo 'Username (required)'; ?></label>
<input class="text-input" name="user_name" type="text" id="user_name" value="" />
</p>
<p class="form-email">
<label for="email"><?php echo 'E-mail (required)'; ?></label>
<input class="text-input" name="email" type="text" id="email" value="" />
</p>
<p class="form-submit">
<input name="adduser" type="submit" id="addusersub" class="submit button" value="Register" />
<?php wp_nonce_field( 'add-user', 'add-nonce' ) ?><!-- a little security to process on submission -->
<input name="action" type="hidden" id="action" value="adduser" />
</p>
</form>
/*
Template Name: Registration Page
*/
get_header();
?>
<?php do_action ('process_customer_registration_form'); ?><!-- the hook to use to process the form -->
<form method="POST" id="adduser" class="user-forms" action="">
<strong>Name</strong>
<p class="form-username">
<label for="user_name"><?php echo 'Username (required)'; ?></label>
<input class="text-input" name="user_name" type="text" id="user_name" value="" />
</p>
<p class="form-email">
<label for="email"><?php echo 'E-mail (required)'; ?></label>
<input class="text-input" name="email" type="text" id="email" value="" />
</p>
<p class="form-submit">
<input name="adduser" type="submit" id="addusersub" class="submit button" value="Register" />
<?php wp_nonce_field( 'add-user', 'add-nonce' ) ?><!-- a little security to process on submission -->
<input name="action" type="hidden" id="action" value="adduser" />
</p>
</form>
Tags
0 Comments