Title: minimum_site_name_length
Published: June 15, 2017
Last modified: May 20, 2026

---

# apply_filters( ‘minimum_site_name_length’, int $length )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#wp--skip-link--target)

Filters the minimum site name length required when validating a site signup.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#parameters)󠁿

 `$length`int

The minimum site name length. Default 4.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#source)󠁿

    ```php
    $minimum_site_name_length = apply_filters( 'minimum_site_name_length', 4 );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/ms-functions.php#L681)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/ms-functions.php#L681-L681)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#related)󠁿

| Used by | Description | 
| [wpmu_validate_blog_signup()](https://developer.wordpress.org/reference/functions/wpmu_validate_blog_signup/)`wp-includes/ms-functions.php` |

Processes new site registrations.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.8.0](https://developer.wordpress.org/reference/since/4.8.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/?output_format=md#comment-content-2333)
 2.   [Rami Yushuvaev](https://profiles.wordpress.org/ramiy/)  [  9 years ago  ](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/#comment-2333)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fminimum_site_name_length%2F%23comment-2333)
    Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fminimum_site_name_length%2F%23comment-2333)
 4.     ```php
        function custom_hook( $length ) {
        	return 5;
        }
        add_filter( 'minimum_site_name_length', 'custom_hook' );
        ```
    
 5. Source: [https://generatewp.com/snippet/oDV3qkN/](https://generatewp.com/snippet/oDV3qkN/)
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fminimum_site_name_length%2F%3Freplytocom%3D2333%23feedback-editor-2333)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fminimum_site_name_length%2F)
before being able to contribute a note or feedback.