update_welcome_subject
Filters the subject of the welcome email sent to the site administrator after site activation.
Usage
add_filter( 'update_welcome_subject', 'wp_kama_update_welcome_subject_filter' ); /** * Function for `update_welcome_subject` filter-hook. * * @param string $subject Subject of the email. * * @return string */ function wp_kama_update_welcome_subject_filter( $subject ){ // filter... return $subject; }
- $subject(string)
- Subject of the email.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wp-includes/ms-functions.php 1691
$subject = apply_filters( 'update_welcome_subject', sprintf( $subject, $current_network->site_name, wp_unslash( $title ) ) );