WordPress.org

Make WordPress Core

Ticket #35858: 35858.diff

File 35858.diff, 1.2 KB (added by johnbillion, 6 years ago)
  • src/wp-includes/ms-functions.php

     
    14571457        $url = get_blogaddress_by_id($blog_id);
    14581458        $user = get_userdata( $user_id );
    14591459
     1460        /**
     1461         * Filter the content of the welcome email after site activation before tokenized replacements have been made.
     1462         *
     1463         * Content should be formatted for transmission via wp_mail().
     1464         *
     1465         * @since x.x.x
     1466         *
     1467         * @param string $welcome_email Message body of the email.
     1468         * @param int    $blog_id       Blog ID.
     1469         * @param int    $user_id       User ID.
     1470         * @param string $password      User password.
     1471         * @param string $title         Site title.
     1472         * @param array  $meta          Signup meta data.
     1473         */
     1474        $welcome_email = apply_filters( 'tokenized_update_welcome_email', $welcome_email, $blog_id, $user_id, $password, $title, $meta );
     1475
    14601476        $welcome_email = str_replace( 'SITE_NAME', $current_site->site_name, $welcome_email );
    14611477        $welcome_email = str_replace( 'BLOG_TITLE', $title, $welcome_email );
    14621478        $welcome_email = str_replace( 'BLOG_URL', $url, $welcome_email );