apply_filters( 'add_signup_meta', array $meta )
- Since
- 3.0.0
Filters the new default site meta variables.
Compatibility
- WordPress
- since 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
$metaarray- { An array of default site meta variables.
@type int $lang_id The language ID.
@type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false.
}$lang_idintThe language ID.$blog_publicintWhether search engines should be discouraged from indexing the site. 1 for true, 0 for false.
Where this hook fires · 3
wp-signup.php:507validate_another_blog_signup()wp-signup.php:692validate_user_signup()wp-signup.php:844validate_blog_signup()
Source code
* An array of default site meta variables. * * @type int $lang_id The language ID. * @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false. * } */ $meta = apply_filters( 'add_signup_meta', $meta_defaults ); $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, get_current_network_id() ); if ( is_wp_error( $blog_id ) ) { return false; }Changelog
Introduced in 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.