wpmu_signup_blog_notification
Filter HookDescription
Filters whether to bypass the new site email notification.Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 964 |
Hook Parameters
Type | Name | Description |
---|---|---|
string|false
|
$domain
|
Site domain, or false to prevent the email from sending. |
string
|
$path
|
Site path. |
string
|
$title
|
Site title. |
string
|
$user_login
|
User login name. |
string
|
$user_email
|
User email address. |
string
|
$key
|
Activation key created in wpmu_signup_blog(). |
array
|
$meta
|
Signup meta data. By default, contains the requested privacy setting and lang_id. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_signup_blog_notification
add_filter('wpmu_signup_blog_notification', 'my_custom_filter', 10, 7);
function my_custom_filter($domain, $path, $title, $user_login, $user_email, $key, $meta) {
// Your custom filtering logic here
return $domain;
}
Source Code Context
wp-includes/ms-functions.php:964
- How this hook is used in WordPress core
<?php
959 * @param string $user_login User login name.
960 * @param string $user_email User email address.
961 * @param string $key Activation key created in wpmu_signup_blog().
962 * @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id.
963 */
964 if ( ! apply_filters( 'wpmu_signup_blog_notification', $domain, $path, $title, $user_login, $user_email, $key, $meta ) ) {
965 return false;
966 }
967
968 // Send email with activation link.
969 if ( ! is_subdomain_install() || get_current_network_id() !== 1 ) {
PHP Documentation
<?php
/**
* Filters whether to bypass the new site email notification.
*
* @since MU (3.0.0)
*
* @param string|false $domain Site domain, or false to prevent the email from sending.
* @param string $path Site path.
* @param string $title Site title.
* @param string $user_login User login name.
* @param string $user_email User email address.
* @param string $key Activation key created in wpmu_signup_blog().
* @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id.
*/
Quick Info
- Hook Type: Filter
- Parameters: 7
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.