minimum_site_name_length

minimum_site_name_length

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('minimum_site_name_length') is found 1 times:

  • /wp-includes/ms-functions.php line 665
    	 * @since 4.8.0
    	 *
    	 * @param int $length The minimum site name length. Default 4.
    	 */
    	$minimum_site_name_length = apply_filters( 'minimum_site_name_length', 4 );
    
    	if ( strlen( $blogname ) < $minimum_site_name_length ) {
    		/* translators: %s: Minimum site name length. */
    		$errors->add( 'blogname', sprintf( _n( 'Site name must be at least %s character.', 'Site name must be at least %s characters.', $minimum_site_name_length ), number_format_i18n( $minimum_site_name_length ) ) );
    	}
    
    

See this hook used in plugins: