signup_site_meta filter-hookWP 4.8.0

Filters the metadata for a site signup.

The metadata will be serialized prior to storing it in the database.

Usage

add_filter( 'signup_site_meta', 'wp_kama_signup_site_meta_filter', 10, 7 );

/**
 * Function for `signup_site_meta` filter-hook.
 * 
 * @param array  $meta       Signup meta data.
 * @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.
 *
 * @return array
 */
function wp_kama_signup_site_meta_filter( $meta, $domain, $path, $title, $user, $user_email, $key ){

	// filter...
	return $meta;
}
$meta(array)
Signup meta data.
Default: empty array
$domain(string)
The requested domain.
$path(string)
The requested path.
$title(string)
The requested site title.
$user(string)
The user's requested login name.
$user_email(string)
The user's email address.
$key(string)
The user's activation key.

Changelog

Since 4.8.0 Introduced.

Where the hook is called

wpmu_signup_blog()
signup_site_meta
wp-includes/ms-functions.php 800
$meta = apply_filters( 'signup_site_meta', $meta, $domain, $path, $title, $user, $user_email, $key );

Where the hook is used in WordPress

Usage not found.