Custom email placeholders {post_content} and {comment_content} for the Groups notifications

There is no email placeholder for the group post/comment content. You can add needed placeholders with a code below. Add this code to the functions.php file in the active theme directory.

NOTE: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customization of the plugin. If you need help implementing this code, please hire a developer.


Once the code is added, go to wp-admin > Ultimate Member > Settings > Email and edit templates "Groups - New post" and "Groups - New comment". Use the {post_content} placeholder in the "Groups - New post" email template. Use the {comment_content} placeholder in the "Groups - New comment" email template.

Image - The "Groups - New post" email template.

Image - The "Groups - New comment" email template.


Related article: Placeholders for email templates