wpmu_signup_blog_notification_email
Filter HookDescription
Filters the message content of the new blog notification email. Content should be formatted for transmission via wp_mail().Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1006 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
Content of the notification email. |
string
|
$domain
|
Site domain. |
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_email
add_filter('wpmu_signup_blog_notification_email', 'my_custom_filter', 10, 8);
function my_custom_filter($content, $domain, $path, $title, $user_login, $user_email, $key, $meta) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-includes/ms-functions.php:1006
- How this hook is used in WordPress core
<?php
1001 * @param string $user_login User login name.
1002 * @param string $user_email User email address.
1003 * @param string $key Activation key created in wpmu_signup_blog().
1004 * @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id.
1005 */
1006 apply_filters(
1007 'wpmu_signup_blog_notification_email',
1008 /* translators: New site notification email. 1: Activation URL, 2: New site URL. */
1009 __( "To activate your site, please click the following link:\n\n%1\$s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%2\$s" ),
1010 $domain,
1011 $path,
PHP Documentation
<?php
/**
* Filters the message content of the new blog notification email.
*
* Content should be formatted for transmission via wp_mail().
*
* @since MU (3.0.0)
*
* @param string $content Content of the notification email.
* @param string $domain Site domain.
* @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: 8
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.