Advertisement
geminilabs

[site-reviews] change the notification emails

Nov 27th, 2018 (edited)
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. /**
  2.  * Add the reviewer's email to the list of emails that the
  3.  * Site Reviews notification is sent to when a new review is created.
  4.  *
  5.  * @param array $emails
  6.  * @param \GeminiLabs\SiteReviews\Review $review
  7.  * @return array
  8.  */
  9. add_filter('site-reviews/notification/emails', function ($emails, $review) {
  10.     $emails[] = $review->email;
  11.     return $emails;
  12. }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement