update_welcome_subject
Filter HookDescription
Filters the subject of the welcome email sent to the site administrator after site activation.Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1738 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$subject
|
Subject of the email. |
Usage Examples
Basic Usage
<?php
// Hook into update_welcome_subject
add_filter('update_welcome_subject', 'my_custom_filter', 10, 1);
function my_custom_filter($subject) {
// Your custom filtering logic here
return $subject;
}
Source Code Context
wp-includes/ms-functions.php:1738
- How this hook is used in WordPress core
<?php
1733 *
1734 * @since MU (3.0.0)
1735 *
1736 * @param string $subject Subject of the email.
1737 */
1738 $subject = apply_filters( 'update_welcome_subject', sprintf( $subject, $current_network->site_name, wp_unslash( $title ) ) );
1739
1740 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers );
1741
1742 if ( $switched_locale ) {
1743 restore_previous_locale();
PHP Documentation
<?php
/**
* Filters the subject of the welcome email sent to the site administrator after site activation.
*
* @since MU (3.0.0)
*
* @param string $subject Subject of the email.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.