Action hook 'after_signup_user'

in WP Core File wp-includes/ms-functions.php at line 913

View Source

after_signup_user

Action Hook
Description
Fires after a user's signup information has been written to the database.

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Action
Line Number 913

Hook Parameters

Type Name Description
string $user The user's requested login name.
string $user_email The user's email address.
string $key The user's activation key.
array $meta Signup meta data. Default empty array.

Usage Examples

Basic Usage
<?php
// Hook into after_signup_user
add_action('after_signup_user', 'my_custom_function', 10, 4);

function my_custom_function($user, $user_email, $key, $meta) {
    // Your custom code here
}

Source Code Context

wp-includes/ms-functions.php:913 - How this hook is used in WordPress core
<?php
 908  	 * @param string $user       The user's requested login name.
 909  	 * @param string $user_email The user's email address.
 910  	 * @param string $key        The user's activation key.
 911  	 * @param array  $meta       Signup meta data. Default empty array.
 912  	 */
 913  	do_action( 'after_signup_user', $user, $user_email, $key, $meta );
 914  }
 915  
 916  /**
 917   * Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active
 918   * until the confirmation link is clicked.

PHP Documentation

<?php
/**
	 * Fires after a user's signup information has been written to the database.
	 *
	 * @since 4.4.0
	 *
	 * @param string $user       The user's requested login name.
	 * @param string $user_email The user's email address.
	 * @param string $key        The user's activation key.
	 * @param array  $meta       Signup meta data. Default empty array.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 4
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.