Filter hook 'update_welcome_user_subject'

in WP Core File wp-includes/ms-functions.php at line 1949

View Source

update_welcome_user_subject

Filter Hook
Description
Filters the subject of the welcome email after user activation.

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Filter
Line Number 1949

Hook Parameters

Type Name Description
string $subject Subject of the email.

Usage Examples

Basic Usage
<?php
// Hook into update_welcome_user_subject
add_filter('update_welcome_user_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:1949 - How this hook is used in WordPress core
<?php
1944  	 *
1945  	 * @since MU (3.0.0)
1946  	 *
1947  	 * @param string $subject Subject of the email.
1948  	 */
1949  	$subject = apply_filters( 'update_welcome_user_subject', sprintf( $subject, $current_network->site_name, $user->user_login ) );
1950  
1951  	wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers );
1952  
1953  	if ( $switched_locale ) {
1954  		restore_previous_locale();

PHP Documentation

<?php
/**
	 * Filters the subject of the welcome email after user 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.