wppaste
WordPress

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_idint

    The language ID.
  • $blog_publicint

    Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false.

Where this hook fires · 3

  • wp-signup.php:497validate_another_blog_signup()
  • wp-signup.php:682validate_user_signup()
  • wp-signup.php:834validate_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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 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.