#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How to reduce first...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] How to reduce first 100 characters of reply's content in email notifications.

    Last Post
RSS

JorgeW
Posts: 68
 JorgeW
Topic starter
April 13, 2019 3:17 am
(@jorgew)
Trusted Member
Joined: 3 years ago

Hi Support,

When there is a reply to any topic, wpForo sends to subscribed users an email notification.

This email includes the link to the topic, to the reply and the first 100 characters of the body contents of  the reply.

I need to reduce this intro to the reply's content to only the first 50 characters, how can I do that?

Thanks.

3 Replies
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
April 13, 2019 7:47 am
(@sofy)
Support Team
Joined: 4 years ago

Hi @jorgew,

I'll ask developers and let you know if it's possible. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Robert
Posts: 8959
Robert - Twitter
 Robert
Admin
April 14, 2019 1:48 pm
(@robert)
Support Team
Joined: 6 years ago

Hi @jorgew,

There is a filter hook to change the post body length in emails:

'wpforo_email_notification_post_body_length'

 

Put this code in active WordPress theme functions.php file:

function wpforo_custom_post_body_lenght( $post_body_lenght ){
$post_body_lenght = 50;
return $post_body_lenght;
}
add_filter('wpforo_email_notification_post_body_length', 'wpforo_custom_post_body_lenght', 10);

Read this article to do it correctly:

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

1 Reply
JorgeW
 JorgeW
(@jorgew)
Joined: 3 years ago

Trusted Member
Posts: 68
April 14, 2019 6:56 pm
Reply toRobertRobert

Thanks @robert

Exactly what I needed. Works perfectly!!

  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Can't send confirmation email from topics when suscribe for new topic

    By gilbau, 32 mins ago

  • Can't add shortcodes to wpForo

    By avorai, 39 mins ago

  • New Feature H1 title for tags

    By annushka, 15 hours ago

  • File in antisapm protection not deleted

    By pesimist57, 20 hours ago

  • How to make URL dynamic like - post1233

    By kedy, 22 hours ago

  • Error 2253 Root Cause

    By aaronmckeon, 2 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo46
  • new features44
  • buddypress42
  • forum41
  • ultimate member40
  • avatar40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2161)

Recent Posts

  • Can't send confirmation email from topics when suscribe for new topic

    When a user click on "Subscribe for new topic" a warnin...

    By gilbau, 32 mins ago

  • RE: Can't add shortcodes to wpForo

    Second image for reference  image-1.png

    By avorai, 39 mins ago

  • RE: File in antisapm protection not deleted

    @chris Thank you for your help.The problem is actual...

    By pesimist57, 11 hours ago

  • H1 title for tags

    Hello! Check attached pdf report please. Can you add ...

    By annushka, 15 hours ago

  • Can users be in multiple forums?

    Hello, thanks for reading this! We are looking for a wo...

    By monimair, 15 hours ago

  • RE: Show Likers with their avatar

    Hi @chris thanks for your helpbut what do you mean b...

    By Tutrix, 16 hours ago

  • RE: How to make URL dynamic like - post1233

    @martin @chris Yes I understand this. I know the sh...

    By kedy, 21 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,754 Topics
49.4 K Posts
5 Online
43.4 K Members

Latest Post: Can't send confirmation email from topics when suscribe for new topic Our newest member: [СМОТРЕТЬ] Ваша Честь 5 Серия Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation