Title: Customize #post_name#
Last modified: February 12, 2025

---

# Customize #post_name#

 *  Resolved [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/)
 * #post_name# is currently returning “Reply To: <Post Name>” in email subject and
   content where I am using this #post_name# variable. Is there a way so that I 
   can customise #post_name# and remove “Reply To:” out of #post_name# ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustomize-post_name%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/customize-post_name/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/customize-post_name/page/2/?output_format=md)

 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301398)
 * I am not sure if you can access the given page but just want to tell you that
   I am using this plugin with bbpress
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301566)
 * Sorry, I didn’t get your query. Is it possible to share a screenshot? The link
   given above is not accessible without login.
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301658)
 * ![](https://wordpress.org/49ee6045-8201-4aa3-a413-6db5c9d6257a)
 * ![](https://wordpress.org/41183002-0679-4285-9164-26e45567cd0a)
 * Please check for reference.
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301665)
 * [https://tinyurl.com/2cjv55aa](https://tinyurl.com/2cjv55aa)
 * [https://tinyurl.com/2dyl4cre](https://tinyurl.com/2dyl4cre)
 * Please check above screenshots for reference.
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301678)
 * Hi [@manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * Thank you for sharing the screenshot. I will check this and get back to you.
 * One last question:
 * Where are you mentioning users and getting this “Reply to” in the email subject.
 * Can you share the steps to follow?
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301684)
 * I am using bbpress and in the topics, I have a reply form where community members
   can reply and mention [@users](https://wordpress.org/support/users/users/).
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301697)
 * ok. Thank you for providing information. I will check this and get back to you.
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18301700)
 * Thank you!
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18302071)
 * Also for **#commenter_name#** it is currently showing username in email but in**#
   user_name#** it is showing as user firstname and user lastname. Can I make the**#
   commenter_name#** also like **#user_name#** so that it pulls commenter firstname
   and last name?
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303199)
 * Ho [@manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * For #post_name#, we have to use following filter to remove “Repy to”
 *     ```wp-block-code
       /*** Modifies the comment notification email subject tokens.** This function is used to filter the comment notification email subject tokens.* It replaces the 'Reply To: ' prefix from the first token in the array.** @param array $tokens The array of comment notification email subject tokens.** @return array The modified array of comment notification email subject tokens.*/function cmnt_modify_subject_tokens( $tokens ) {$tokens[0] = str_replace( 'Reply To: ', '', $tokens[0] );return $tokens;}add_filter( 'cmt_mtn_replace_email_sub_placeholders', 'cmnt_modify_subject_tokens' );/*** Modifies the comment notification email content tokens.** This function is used to filter the comment notification email content tokens.* It replaces the 'Reply To: ' prefix from the first token in the array.** @param array $tokens The array of comment notification email content tokens.** @return array The modified array of comment notification email content tokens.*/function cmnt_modify_content_tokens( $tokens ) {$tokens[1] = str_replace( 'Reply To: ', '', $tokens[1] );return $tokens;}add_filter( 'cmt_mtn_replace_email_placeholders', 'cmnt_modify_content_tokens' );
       ```
   
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303596)
 * That’s working like a charm. Thank you so much!!
 * However, if you could please provide me a hook to below query, that will be really
   helpful:
   Also for **#commenter_name#** it is currently showing username in email
   but in **#user_name#** it is showing as user firstname and user lastname. Can
   I make the **#commenter_name#** also like **#user_name#** so that it pulls commenter
   firstname and last name?
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303641)
 * This seems like a bug. Can you share a screenshot of settings you did.
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303676)
 * Please check the screenshot:
   [https://tinyurl.com/26xcxwzo](https://tinyurl.com/26xcxwzo)
 *  Thread Starter [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * (@manojrwlsr)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303684)
 *     ```wp-block-code
       Currently I am customizing the dropdown on front end with below filter so may be that's why it is showing up "#username#" like first name + last name, but we are not modifying #comentername# that we need to make like user firstname + lastname:function custom_bbp_breadcrumbs() {if (bbp_is_single_user()) {$user_id = bbp_get_displayed_user_id();$first_name = ucwords(get_user_meta($user_id, 'first_name', true));$last_name = ucwords(get_user_meta($user_id, 'last_name', true));$full_name = trim($first_name . ' ' . $last_name);$member_community_url = site_url();echo '<div class="bbp-breadcrumb">';echo '<p>';echo '<a href="' . esc_url($member_community_url) . '" class="bbp-breadcrumb-root">Member Community</a> ';echo '<span class="bbp-breadcrumb-sep">›</span> ';echo '<span class="bbp-breadcrumb-current">' . esc_html($full_name) . '</span>';echo '</p>';echo '</div>';} else {bbp_breadcrumb();}}add_filter('cmt_mntn_ajax_get_users', 'customize_user_dropdown_data', 10, 2);function customize_user_dropdown_data($results, $args) {foreach ($results as $result) {$user_id = $result->user_id;$fname = get_user_meta($user_id, 'first_name', true);$lname = get_user_meta($user_id, 'last_name', true);if ($fname || $lname) {$result->name = $fname . ' ' . $lname;$result->key = $fname . ' ' . $lname; // Ensure the key is also updated if used}}return $results;}function customize_user_dropdown_with_email($results, $args) {foreach ($results as $result) {$user_id = $result->user_id;$user_info = get_userdata($user_id);if ($user_info) {$result->name = $user_info->user_email;}}return $results;}add_filter('cmt_mntn_ajax_get_users', 'customize_user_dropdown_with_email', 10, 2);
       ```
   
 *  Plugin Author [Bunty](https://wordpress.org/support/users/bhargavbhandari90/)
 * (@bhargavbhandari90)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/#post-18303766)
 * Then I would recommend, try by removing your custom code.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/customize-post_name/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/customize-post_name/page/2/?output_format=md)

The topic ‘Customize #post_name#’ is closed to new replies.

 * ![](https://ps.w.org/comment-mention/assets/icon-256x256.png?rev=2831293)
 * [Comment Mention](https://wordpress.org/plugins/comment-mention/)
 * [Support Threads](https://wordpress.org/support/plugin/comment-mention/)
 * [Active Topics](https://wordpress.org/support/plugin/comment-mention/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comment-mention/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comment-mention/reviews/)

 * 20 replies
 * 2 participants
 * Last reply from: [manojrwlsr](https://wordpress.org/support/users/manojrwlsr/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/customize-post_name/page/2/#post-18304133)
 * Status: resolved