WpProQuiz_Controller_Quiz::get_user_notification_recipient( WpProQuiz_Model_Quiz $quiz, WP_User $user )
Returns the recipient address for the quiz user notification.
Description #
Logged-out visitors have no account address, so the address they submitted in an Email custom field is used instead. It is the same value that is stored alongside the quiz statistics.
Parameters #
- $quiz
-
(WpProQuiz_Model_Quiz) (Required) Quiz object.
- $user
-
(WP_User) (Required) The user who completed the quiz.
Return #
(string) Recipient address, or an empty string when none is available.
Source #
File: includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Quiz.php
Changelog #
| Version | Description |
|---|---|
| 5.1.10 | Introduced. |