bp_core_activation_signup_blog_notification_message

  • apply_filters( 'bp_core_activation_signup_blog_notification_message', $message, $domain, $path, $title, $user, $user_email, $key, $meta )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-filters.php :: Trac Source Line: 210
      	$from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
      	$message_headers = "MIME-Version: 1.0n" . "From: "{$from_name}" <{$admin_email}>n" . "Content-Type: text/plain; charset="" . get_option( 'blog_charset' ) . ""n";
      	$message         = sprintf( __( "Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s", 'buddypress' ), $activate_url, esc_url( "http://{$domain}{$path}" ) );
      	$subject         = '[' . $from_name . '] ' . sprintf(__( 'Activate %s', 'buddypress' ), esc_url( 'http://' . $domain . $path ) );
      
      	// Send the message
      	$to              = apply_filters( 'bp_core_activation_signup_blog_notification_to',   $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
      	$subject         = apply_filters( 'bp_core_activation_signup_blog_notification_subject', $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
      	$message         = apply_filters( 'bp_core_activation_signup_blog_notification_message', $message, $domain, $path, $title, $user, $user_email, $key, $meta );
      
      	wp_mail( $to, $subject, $message, $message_headers );
      
      	do_action( 'bp_core_sent_blog_signup_email', $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
      
      	// Return false to stop the original WPMU function from continuing
      	return false;
      }
      if ( !is_admin() )
      	add_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 );
      

Comments are closed.