newblogname filter-hookWP 3.0.0

Filters the new site name during registration.

The name is the site's subdomain or the site's subdirectory path depending on the network settings.

Usage

add_filter( 'newblogname', 'wp_kama_newblogname_filter' );

/**
 * Function for `newblogname` filter-hook.
 * 
 * @param string $blogname Site name.
 *
 * @return string
 */
function wp_kama_newblogname_filter( $blogname ){

	// filter...
	return $blogname;
}
$blogname(string)
Site name.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wpmu_validate_blog_signup()
newblogname
wp-includes/ms-functions.php 692
$blogname = apply_filters( 'newblogname', $blogname );

Where the hook is used in WordPress

Usage not found.