register_formaction-hookWP 2.1.0

Fires after the “Email” field is displayed in the user registration form on the wp-login.php page.

Usage

add_action( 'register_form', 'wp_kama_register_form_action' );

/**
 * Function for `register_form` action-hook.
 * 
 * @return void
 */
function wp_kama_register_form_action(){

	// action...
}

Examples

#1 Add custom content to the registration form

add_action( 'register_form', 'register_form_add_block' );

function register_form_add_block() {
	?>
	<div style="margin: 20px 0;">
		It is great that you decided to join us!
	</div>
	<?php
}

See also the examples used together with the registration_errors and shake_error_codes hooks.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

In file: /wp-login.php
register_form
wp-login.php 1177
do_action( 'register_form' );

Where the hook is used in WordPress

Usage not found.