minimum_site_name_length
Filters the minimum site name length required when validating a site signup.
Usage
add_filter( 'minimum_site_name_length', 'wp_kama_minimum_site_name_length_filter' ); /** * Function for `minimum_site_name_length` filter-hook. * * @param int $length The minimum site name length. * * @return int */ function wp_kama_minimum_site_name_length_filter( $length ){ // filter... return $length; }
- $length(int)
- The minimum site name length.
Default: 4
Changelog
Since 4.8.0 | Introduced. |
Where the hook is called
wp-includes/ms-functions.php 665
$minimum_site_name_length = apply_filters( 'minimum_site_name_length', 4 );