helpful_feedback_email_headers

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 post helpful?

Top