Resume Manager snippets

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.

↑ Back to Top 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(); 
}

↑ Back to Top 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');

 

↑ Back to Top Redirect when a resume is submitted

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

function wpjmres_final_redirect(){
  wp_redirect('https://DOMAIN.COM');
  exit();
}

 

↑ Back to Top 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;
}

 

↑ Back to Top Remove the sign-in option from WPJM Resume Submission

add_filter( 'submit_resume_form_show_signin', '__return_false' );