apply_filters( 'newblogname', string $blogname )
- Since
- MU (3.0.0)
Filters the new site name during registration.
Description
The name is the site's subdomain or the site's subdirectory path depending on the network settings.
Compatibility
- WordPress
- since MU (3.0.0)
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$blognamestring- Site name.
Where this hook fires · 1
wp-includes/ms-functions.php:708wpmu_validate_blog_signup()
Source code
* 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.' ) ); }Changelog
Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.