Adding the company name from woocommerce to the learndash email report
add the following to ../wp-content/plugins/sfwd-lms/includes/vendor/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Quiz.php
‘$companyname’ => $user-> billing_company,
it goes in around line 842 in this context:
private function emailNote(WpProQuiz_Model_Quiz $quiz, $result, $categories) { $globalMapper = new WpProQuiz_Model_GlobalSettingsMapper(); $adminEmail = $globalMapper->getEmailSettings(); $userEmail = $globalMapper->getUserEmailSettings(); $user = wp_get_current_user(); $r = array( '$userId' => $user->ID, '$username' => $user->display_name, '$companyname' => $user-> billing_company, '$quizname' => $quiz->getName(), '$result' => $result['result'].'%', '$points' => $result['points'], '$ip' => filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP), '$categories' => empty($result['cats']) ? '' : $this->setCategoryOverview($result['cats'], $categories) );