Resume Manager snippets

← Back to Resume Manager

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.

Please use the Code Snippets plugin, rather than adding the code samples below directly to your theme’s functions.php file. That will help ensure that any code errors won’t crash your site, and the changes will not be overwritten when you update your theme.


Exclude resume (CV) files in notification emails to employers

add_filter('create_job_application_notification_attachments', 'htdat_create_job_application_notification_attachments'); 

function htdat_create_job_application_notification_attachments (){
	return array(); 
}

Send email to candidate when resume is approved

function resume_published_send_email($post_id) {
   $post = get_post($post_id);
   $author = get_userdata($post->post_author);

   $message = "
      Hi ".$author->display_name.",
      Your resume, ".$post->post_title." has just been approved at ".get_permalink( $post_id ).". Well done!
   ";
   wp_mail($author->user_email, "Your resume is online", $message);
}
add_action('publish_resume', 'resume_published_send_email');

Redirect when a resume is submitted

add_action( 'resume_manager_resume_submitted', 'wpjmres_final_redirect', 99);

function wpjmres_final_redirect(){
  wp_redirect('https://yourgroovydomain.com');
  exit();
}

Add e-mail setting field to WPJM Resume

add_filter('resume_manager_settings', 'bk_add_email_resumes');

function bk_add_email_resumes( $settings ){
  $settings['resume_submission'][1][] = array(
    'name' 		=> 'resume_manager_email_notifications',
    'std' 		=> '',
    'label' 	=> __( 'E-Mail Addresses To Be Notified', 'wp-job-manager-resumes' ),
    'desc'		=> __( 'Instead of the admin, bother these folks instead.', 'wp-job-manager-resumes' ),
    'type'      => 'input'
  );
  return $settings;
}

add_filter( 'resume_manager_new_resume_notification_recipient', 'bk_apply_my_setting' );
function bk_apply_my_setting( $email ){
  $option = get_option('resume_manager_email_notifications');
  if ( $option ) {
    return $option;
    }
  return $email;
}

Remove the sign-in option from WPJM Resume Submission

add_filter( 'submit_resume_form_show_signin', '__return_false' );

Resume Manager Documentation