Filter hook 'signup_site_meta'

in WP Core File wp-includes/ms-functions.php at line 821

View Source

signup_site_meta

Filter Hook
Description
Filters the metadata for a site signup. The metadata will be serialized prior to storing it in the database.

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Filter
Line Number 821

Hook Parameters

Type Name Description
array $meta Signup meta data. Default empty array.
string $domain The requested domain.
string $path The requested path.
string $title The requested site title.
string $user The user's requested login name.
string $user_email The user's email address.
string $key The user's activation key.

Usage Examples

Basic Usage
<?php
// Hook into signup_site_meta
add_filter('signup_site_meta', 'my_custom_filter', 10, 7);

function my_custom_filter($meta, $domain, $path, $title, $user, $user_email, $key) {
    // Your custom filtering logic here
    return $meta;
}

Source Code Context

wp-includes/ms-functions.php:821 - How this hook is used in WordPress core
<?php
 816  	 * @param string $title      The requested site title.
 817  	 * @param string $user       The user's requested login name.
 818  	 * @param string $user_email The user's email address.
 819  	 * @param string $key        The user's activation key.
 820  	 */
 821  	$meta = apply_filters( 'signup_site_meta', $meta, $domain, $path, $title, $user, $user_email, $key );
 822  
 823  	$wpdb->insert(
 824  		$wpdb->signups,
 825  		array(
 826  			'domain'         => $domain,

PHP Documentation

<?php
/**
	 * Filters the metadata for a site signup.
	 *
	 * The metadata will be serialized prior to storing it in the database.
	 *
	 * @since 4.8.0
	 *
	 * @param array  $meta       Signup meta data. Default empty array.
	 * @param string $domain     The requested domain.
	 * @param string $path       The requested path.
	 * @param string $title      The requested site title.
	 * @param string $user       The user's requested login name.
	 * @param string $user_email The user's email address.
	 * @param string $key        The user's activation key.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 7
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.