Custom field content in notification template?
-
I’ve added custom fields to my review form but don’t know how to include that info in the Notification Template. For instance, how would I include this “doctors” field in the notification email? –
add_filter('site-reviews/config/forms/review-form', function ($config) { $config['doctors'] = [ 'label' => __('Who was your doctor?', 'your_theme_domain'), 'options' => [ 'Dr. Davey' => __('Dr. Davey', 'your_theme_domain'), 'Dr. Jim' => __('Dr. Jim', 'your_theme_domain'), 'Dr. Detroit' => __('Dr. Detroit', 'your_theme_domain'), ], 'type' => 'select', ]; return $config; });
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom field content in notification template?’ is closed to new replies.