signup_user_meta
Filter HookDescription
Filters the metadata for a user 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 | 887 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$meta
|
Signup meta data. Default empty array. |
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_user_meta
add_filter('signup_user_meta', 'my_custom_filter', 10, 4);
function my_custom_filter($meta, $user, $user_email, $key) {
// Your custom filtering logic here
return $meta;
}
Source Code Context
wp-includes/ms-functions.php:887
- How this hook is used in WordPress core
<?php
882 * @param array $meta Signup meta data. Default empty array.
883 * @param string $user The user's requested login name.
884 * @param string $user_email The user's email address.
885 * @param string $key The user's activation key.
886 */
887 $meta = apply_filters( 'signup_user_meta', $meta, $user, $user_email, $key );
888
889 $wpdb->insert(
890 $wpdb->signups,
891 array(
892 'domain' => '',
PHP Documentation
<?php
/**
* Filters the metadata for a user 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 $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: 4
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.