AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Notification [topic_body] [post_body] Length

2 Posts
2 Users
0 Reactions
1,139 Views
Posts: 9
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@mocuenco)
Eminent Member
Joined: 6 years ago
[#23251]

Hi There, 

Is there a way to make [topic_body] [post_body] to show the full post of topic and Reply rather than an excerpt only in the email notification?

This will help users know whether they want to reply or not on the topic or reply before going to the forum. 

Thank you always for a great support.

Mike

The page I need help with
wpForo Version
2.0.6
WordPress Version
6.0.1

1 Reply
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @mocuenco

Sorry for late response.

This code will remove the email content limit.

add_filter( 'wpforo_email_notification_post_body_length', function(){ return 0; } );

You can insert it in your active themes functions.php file or use snippets plugin.

Solution by inserting the code in Themes functions.php file

Add the below code at the end(bottom) of the current active theme functions.php file

Option one: open functions.php file from wp-content > themes > current active theme.

Option Two: Go to Dashboard > Appearance Theme File Editor, select Theme Functions(functions.php) file from Theme Files Bar.

Please mention that the code can be lost after updating or changing the theme.

Solution by using Code Snippets Plugin

Install and Activate Code Snippets plugin( https://wordpress.org/plugins/code-snippets/).
Go to Dashboard > Snippets > Add New.
Insert the code in code field:
Select Run snippet everywhere Radio and save the snippet.
Check that the new created snippet is active from Dashboard > Snippets > All Snippets.


Share: