Tutorial: Changing the default email application subject line

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

The email application links in Job Manager by default look something like this:

Job Application via “Job Title” listing on Your Site name

There are two methods of customising this;

  1. Using a localisation file and translating the string
  2. Using a filter

The filter method involves adding a small block of code to a plugin like Code Snippets. An example snippet is shown below.

add_filter( 'job_manager_application_email_subject', 'custom_job_manager_application_email_subject', 10, 2 );

// This is your hooked in function. Note: the $post variable is only available after v1.11.2
function custom_job_manager_application_email_subject( $subject, $post ) {
	// By default, $subject will contain: Job Application via "X" listing on X. Change that below
	$subject = 'New subject';
	
	// Return the new subject
	return $subject;
}
Code Snippets Documentation