Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change activation email text?


  • somosguatemala
    Participant

    @somosguatemala

    How do i change my text in the activation email i want to translate it and write my own text. I tried editing the file: plugins/buddypress/bp-core/bp-core-filters.php I changed the text in this function but it didn’t change the activation email function:

    bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {
    
    // Send email with activation link.
    $activate_url = bp_get_activation_page() ."?key=$key";
    $activate_url = esc_url( $activate_url );
    
    $admin_email = get_site_option( 'admin_email' );
    
    if ( empty( $admin_email ) )
    $admin_email = 'support@' . $_SERVER;
    
    $from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
    $message_headers = "MIME-Version: 1.0n" . "From: "{$from_name}" n" . "Content-Type: text/plain; charset="" . get_option( 'blog_charset' ) . ""n";
    $message         = sprintf( __( "Gracias por registrarse al mejor redsocial de Guatemala! Para completar la activacion de su cuenta, por favor haga clic en el siguiente enlace:nn%1$snnnnDespues de activar, puede visitar su sitio aqui:nn%2$s", 'buddypress' ), $activate_url, esc_url( "http://{$domain}{$path}" ) );
    $subject         = ' ' . sprintf(__( 'Activate %s', 'buddypress' ), esc_url( 'http://' . $domain . $path ) );

    But nothing happened am i editing the wrong file? I am also using the plugins: BP Auto Login on Activation and Welcome Pack. Can it be that the email that is sent is contained in there?

    Thank you guys for your help in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change activation email text?’ is closed to new replies.
Skip to toolbar