after_signup_site
Fires after site signup information has been written to the database.
Description
Parameters (7)
- 0. $domain (string)
- The requested domain.
- 1. $path (string)
- The requested path.
- 2. $title (string)
- The requested site title.
- 3. $user (string)
- The user's requested login name.
- 4. $user_email (string)
- The user's email address.
- 5. $key (string)
- The user's activation key
- 6. $meta (array)
- By default, contains the requested privacy setting and lang_id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );
- The following example is for adding a hook callback.
- // define the after_signup_site callback
- function action_after_signup_site( $domain, $path, $title, $user, $user_email, $key, $meta ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_signup_site', 'action_after_signup_site', 10, 7 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'after_signup_site', 'action_after_signup_site', 10, 7 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/ms-functions.php
- do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );