Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created February 11, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryceadams/e3e75513dfeb7df0ca33 to your computer and use it in GitHub Desktop.
Save bryceadams/e3e75513dfeb7df0ca33 to your computer and use it in GitHub Desktop.
// Add your own function to filter the fields
add_filter( 'submit_resume_form_fields', 'resume_file_required' );
// This is your function which takes the fields, modifies them, and returns them
function resume_file_required( $fields ) {
// Here we target one of the job fields (candidate name) and change it's label
$fields['resume_fields']['resume_file']['required'] = true;
// And return the modified fields
return $fields;
}
@mahfuzul
Copy link

How can we make resume_content or resume_file ( one of them must need to fill ) required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment