How to change Items Reviews email

Updated: October 27, 2016

Unfortunately theme dont have option to change this email inside admin panel. Which is:

Review %d for item %s is waiting for your moderation

If you would like to change you have to change translations for ait-item-reviews plugin.

These translations are located inside /wp-content/plugins/ait-item-reviews/languages/ait-item-reviews.pot or /wp-content/plugins/ait-languages/ait/languages/ait-item-reviews (if ait language plugin is available on your site)

So then follow next article how to change these sentences:
https://www.ait-themes.club/knowledge-base/how-to-change-fixed-words-in-theme/

Source code which care for sending of email is located  here at 1143 – 1150 line:
/wp-content/plugins/ait-item-reviews/ait-item-reviews.php

$bulkMessage = sprintf(__('Review <a href="%s">#%d</a> for item <a href="%s">%s</a> is waiting for your moderation', 'ait-item-reviews'), admin_url('edit.php?post_type=ait-review'), $review_id, admin_url('post.php?post='.$item->ID.'&action=edit'), $item->post_title);
 AitItemReviews::notifyAdmin(__('Review pending moderation','ait-item-reviews'), $bulkMessage);

 /* Send Mail to item author when capabilityReviewsAuthorManage is set to true in package */
 $user = get_user_by("ID", $item->post_author);
 if($user->has_cap('ait_item_reviews_approve_review')){
 $bulkMessage = sprintf(__('Review <a href="%s">#%d</a> for item <a href="%s">%s</a> is waiting for your moderation', 'ait-item-reviews'), admin_url('edit.php?post_type=ait-review'), $review_id, admin_url('post.php?post='.$item->ID.'&action=edit'), $item->post_title);
 AitItemReviews::notifyOwner($user, __('Review pending moderation','ait-item-reviews'), $bulkMessage);
 }

 

About Dodo Sofranko

Works in web industry for 4 years now. He's a member of our support team. Knows everything about all our themes, wordpress, HTML, CSS, PHP and jQuery.