wpmu_signup_blog_notification_subject
Filter HookDescription
Filters the subject of the new blog notification email.Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1038 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$subject
|
Subject 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_subject
add_filter('wpmu_signup_blog_notification_subject', 'my_custom_filter', 10, 8);
function my_custom_filter($subject, $domain, $path, $title, $user_login, $user_email, $key, $meta) {
// Your custom filtering logic here
return $subject;
}
Source Code Context
wp-includes/ms-functions.php:1038
- How this hook is used in WordPress core
<?php
1033 * @param string $user_login User login name.
1034 * @param string $user_email User email address.
1035 * @param string $key Activation key created in wpmu_signup_blog().
1036 * @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id.
1037 */
1038 apply_filters(
1039 'wpmu_signup_blog_notification_subject',
1040 /* translators: New site notification email subject. 1: Network title, 2: New site URL. */
1041 _x( '[%1$s] Activate %2$s', 'New site notification email subject' ),
1042 $domain,
1043 $path,
PHP Documentation
<?php
/**
* Filters the subject of the new blog notification email.
*
* @since MU (3.0.0)
*
* @param string $subject Subject 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.