newblogname
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
wp-includes/ms-functions.php 708
$blogname = apply_filters( 'newblogname', $blogname );