Skip to:
Content
Pages
Categories
Search
Top
Bottom

Force Activation Link to be clickable!

  • Hi there,

    Some email readers program doesn’t transform http://url into proper link!

    It’s a shame because, user has to copy/paste the URL into their browser…

    Is there a way of modifying this function without touching the core file of BP?

    `function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) {
    $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 = ‘noreply@’ . $_SERVER;

    $from_name = ( ” == get_option( ‘blogname’ ) ) ? ‘BuddyPress’ : wp_specialchars( get_option( ‘blogname’ ) );
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    $message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url );
    $subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );

    /* Send the message */
    $to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email );
    $subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject );
    $message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message );

    wp_mail( $to, $subject, $message, $message_headers );
    }`

    Thanks in advance for your time.

    Jk_

  • The topic ‘Force Activation Link to be clickable!’ is closed to new replies.
Skip to toolbar