wphooks.info - newblogname

newblogname

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/ms-functions.php:
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
	/**
	 * 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.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param string $blogname Site name.
	 */
	$blogname = apply_filters( 'newblogname', $blogname );

	$blog_title = wp_unslash( $blog_title );

	if ( empty( $blog_title ) ) {
		$errors->add( 'blog_title', __( 'Please enter a site title.' ) );
	}

	// Check if the domain/path has been used already.
	if ( is_subdomain_install() ) {