Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * How to add notification tags for your custom fields
- *
- * @param array $data
- * @param \GeminiLabs\SiteReviews\Modules\Email $email
- * @return array
- */
- add_filter('site-reviews/email/compose', function ($data, $email) {
- $review = glsr_get($email, 'data.review');
- if ($review) {
- $data['template-tags']['custom_telephone'] = $review->custom->telephone;
- $data['template-tags']['custom_state_county'] = $review->custom->state_county;
- }
- return $data;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement