Action hook 'after_signup_site'

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

View Source

after_signup_site

Action Hook
Description
Fires after site 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 850

Hook Parameters

Type Name Description
string $domain The requested domain.
string $path The requested path.
string $title The requested site title.
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. By default, contains the requested privacy setting and lang_id.

Usage Examples

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

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

Source Code Context

wp-includes/ms-functions.php:850 - How this hook is used in WordPress core
<?php
 845  	 * @param string $user       The user's requested login name.
 846  	 * @param string $user_email The user's email address.
 847  	 * @param string $key        The user's activation key.
 848  	 * @param array  $meta       Signup meta data. By default, contains the requested privacy setting and lang_id.
 849  	 */
 850  	do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );
 851  }
 852  
 853  /**
 854   * Records user signup information for future activation.
 855   *

PHP Documentation

<?php
/**
	 * Fires after site signup information has been written to the database.
	 *
	 * @since 4.4.0
	 *
	 * @param string $domain     The requested domain.
	 * @param string $path       The requested path.
	 * @param string $title      The requested site title.
	 * @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. By default, contains the requested privacy setting and lang_id.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 7
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.