bbp_subscription_mail_message

  • apply_filters( 'bbp_subscription_mail_message', sprintf( $message, $reply_author_name, strip_tags( bbp_get_reply_content( $reply_id ) ), bbp_get_reply_url( $reply_id ) ), $reply_id, $topic_id, $user_id )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 1032
      	// Loop through users
      	foreach ( (array) $user_ids as $user_id ) {
      
      		// Don't send notifications to the person who made the post
      		if ( !empty( $reply_author ) && (int) $user_id == (int) $reply_author )
      			continue;
      
      		// For plugins to filter messages per reply/topic/user
      		$message = __( "%1$s wrote:nn%2$snnPost Link: %3$snnYou are recieving this email because you subscribed to it. Login and visit the topic to unsubscribe from these emails.", 'bbpress' );
      		$message = apply_filters( 'bbp_subscription_mail_message', sprintf( $message, $reply_author_name, strip_tags( bbp_get_reply_content( $reply_id ) ), bbp_get_reply_url( $reply_id ) ), $reply_id, $topic_id, $user_id );
      		if ( empty( $message ) )
      			continue;
      
      		// For plugins to filter titles per reply/topic/user
      		$subject = apply_filters( 'bbp_subscription_mail_title', '[' . get_option( 'blogname' ) . '] ' . bbp_get_topic_title( $topic_id ), $reply_id, $topic_id, $user_id );
      		if ( empty( $subject ) )
      			continue;
      
      		// Get user data of this user
      		$user = get_userdata( $user_id );
      

Comments are closed.