diff --git a/README.md b/README.md
index 6ba4e6f..98a7a12 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
**Tags:** comments, mention, email, user, bbpress
**Requires at least:** 4.6
**Tested up to:** 6.4.3
-**Stable tag:** 1.7.7
+**Stable tag:** 1.7.8
**Requires PHP:** 5.6
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
@@ -62,6 +62,9 @@ e.g.
## Changelog ##
+### 1.7.8 ###
+* Hook added : `cmnt_mntn_replace_mentioned_name`.
+
### 1.7.7 ###
* Bug Fix : Unable to mention user on freshly installed `Comment Mention`.
diff --git a/app/main/class-comment-mention.php b/app/main/class-comment-mention.php
index 7307768..31f416e 100644
--- a/app/main/class-comment-mention.php
+++ b/app/main/class-comment-mention.php
@@ -195,8 +195,9 @@ public function cmt_mntn_at_name_filter( $content ) {
// Linkify the mentions with the username.
foreach ( (array) $usernames as $user_id => $username ) {
- $author_url = get_author_posts_url( $user_id );
- $content = preg_replace( '/(@' . $username . '\b)/', "", $content );
+ $author_url = get_author_posts_url( $user_id );
+ $mentioned_name = apply_filters( 'cmnt_mntn_replace_mentioned_name', $username, $user_id );
+ $content = preg_replace( '/(@' . $username . '\b)/', "", $content );
}
// Put everything back.
diff --git a/comment-mention.php b/comment-mention.php
index bc0772e..4fe160b 100644
--- a/comment-mention.php
+++ b/comment-mention.php
@@ -6,7 +6,7 @@
* Author URI: https://bhargavb.com
* Text Domain: comment-mention
* Domain Path: /languages
- * Version: 1.7.7
+ * Version: 1.7.8
*
* @package Comment_Mention
*/
@@ -21,7 +21,7 @@
/**
* The version of the plugin.
*/
- define( 'CMT_MNTN_VERSION', '1.7.7' );
+ define( 'CMT_MNTN_VERSION', '1.7.8' );
}
if ( ! defined( 'CMT_MNTN_PATH' ) ) {
/**
diff --git a/readme.txt b/readme.txt
index 3a483b4..375dd1c 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BnB90/50
Tags: comments, mention, email, user, bbpress
Requires at least: 4.6
Tested up to: 6.4.3
-Stable tag: 1.7.7
+Stable tag: 1.7.8
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -62,6 +62,9 @@ e.g.
== Changelog ==
+= 1.7.8 =
+* Hook added : `cmnt_mntn_replace_mentioned_name`.
+
= 1.7.7 =
* Bug Fix : Unable to mention user on freshly installed `Comment Mention`.