Modifying application form notification email headers

When the application form is completed by a candidate, their application emailed to the author of the job in WordPress.

You may require that all applications are delivered to a specific email address. If this is the case you can add in a CC email address using the code below:

<?php
/**
 * Adds a CC address to all application notification emails.
 *
 * @param array $headers The current email headers.
 * @return array The modified email headers.
 */
function recpress_edit_job_application_headers( $headers ) {
	$headers[] = 'CC: ' . 'My Custom From Name' . ' <example@example.com>';
	return $headers;
}
	
add_filter( 'create_job_application_notification_headers', 'recpress_edit_job_application_headers' );

This code can be placed in a plugin or in your active themes functions.php file.