Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param array $details
- * @param \GeminiLabs\SiteReviews\Modules\Email $email
- * @return array
- */
- add_filter('site-reviews/email/compose', function ($details, $email) {
- // Get the email address submitted with the review
- $emailAddress = glsr_get($email, 'data.review.email');
- // If an email was submitted with the review, use it as the reply-to header
- if (!empty($emailAddress)) {
- $details['reply-to'] = $emailAddress;
- }
- return $details;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement