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.
Использование
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(строка)
- Site name.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
wp-includes/ms-functions.php 692
$blogname = apply_filters( 'newblogname', $blogname );