If you use WP Job Manager to manage job postings in your WordPress installation you may find that there is a slightly annoying feature they include by default.  When creating a new job the plugin will automatically insert the current users email address into the application field.  There is no way to turn this off in the plugin’s settings so we did some digging and found a little snippet that will prevent that field from auto-populating.

You will want to insert this into your functions.php file.


// Add filter to prevent job manager from automatically inserting email address into field in the admin area
// Info on modifying this is here: https://wpjobmanager.com/document/editing-job-submission-fields/#section-2
add_filter( 'job_manager_job_listing_data_fields', 'remove_email_job_manager_job_listing_data_fields' );
function remove_email_job_manager_job_listing_data_fields( $fields ) {
    $fields['_application']['value'] = "";
    return $fields;
}

The above code will tell the application field in WP Job Manager not to put any default text or email addresses in the box.

This Post Has One Comment

  1. Thanks. This was bugging me for many days and you provided a very easy fix. Much appreciated.

Leave a Reply

Close Menu

Get in Touch

Please fill out the form below and we will get back to you ASAP

  • This field is for validation purposes and should be left unchanged.

Skip to content