Action hook 'register_form'

in WP Core File wp-login.php at line 1184

View Source

register_form

Action Hook
Description
Fires following the 'Email' field in the user registration form.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Action
Line Number 1184

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into register_form
add_action('register_form', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-login.php:1184 - How this hook is used in WordPress core
<?php
1179  			/**
1180  			 * Fires following the 'Email' field in the user registration form.
1181  			 *
1182  			 * @since 2.1.0
1183  			 */
1184  			do_action( 'register_form' );
1185  
1186  			?>
1187  			<p id="reg_passmail">
1188  				<?php _e( 'Registration confirmation will be emailed to you.' ); ?>
1189  			</p>

PHP Documentation

<?php
/**
			 * Fires following the 'Email' field in the user registration form.
			 *
			 * @since 2.1.0
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.