Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param array $emails
- * @param \GeminiLabs\SiteReviews\Review $review
- * @return array
- */
- add_filter('site-reviews/notification/emails', function ($emails, $review) {
- $posts = $review->assignedPosts();
- foreach ($posts as $post) {
- $email = get_post_meta($post->ID, 'company_email', true);
- if (is_email($email)) {
- $emails[] = $email;
- }
- }
- return $emails;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement