With this filter, the headers of the feedback emails can be manipulated, or extended. By default Helpful enables UTF-8 encoding and allows HTML. In our example we add another email in CC.
/**
* Replace the email headers of feedback emails.
*
* @link https://developer.wordpress.org/reference/functions/wp_mail/
*
* @param array $headers
* @return string
*/
add_filter('helpful_feedback_email_headers', function (array $headers) {
$headers[] = 'Cc: John Doe <name@email.com>';
return $headers;
});
Was this helpful?
Vote now and show me if you like or helped the content. After that, you can also leave feedback if you have a few more words to say.