Created
December 28, 2016 01:43
-
-
Save mizner/dcf7e7882c7a607f44cece0d827a2764 to your computer and use it in GitHub Desktop.
WP Job Manager Resume Fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->fields = apply_filters( 'submit_resume_form_fields', array( | |
'resume_fields' => array( | |
'candidate_name' => array( | |
'label' => __( 'Your name', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => __( 'Your full name', 'wp-job-manager-resumes' ), | |
'priority' => 1 | |
), | |
'candidate_email' => array( | |
'label' => __( 'Your email', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => __( 'you@yourdomain.com', 'wp-job-manager-resumes' ), | |
'priority' => 2 | |
), | |
'candidate_title' => array( | |
'label' => __( 'Professional title', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => __( 'e.g. "Web Developer"', 'wp-job-manager-resumes' ), | |
'priority' => 3 | |
), | |
'candidate_location' => array( | |
'label' => __( 'Location', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => __( 'e.g. "London, UK", "New York", "Houston, TX"', 'wp-job-manager-resumes' ), | |
'priority' => 4 | |
), | |
'candidate_photo' => array( | |
'label' => __( 'Photo', 'wp-job-manager-resumes' ), | |
'type' => 'file', | |
'required' => false, | |
'placeholder' => '', | |
'priority' => 5, | |
'ajax' => true, | |
'allowed_mime_types' => array( | |
'jpg' => 'image/jpeg', | |
'jpeg' => 'image/jpeg', | |
'gif' => 'image/gif', | |
'png' => 'image/png' | |
) | |
), | |
'candidate_video' => array( | |
'label' => __( 'Video', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => false, | |
'priority' => 6, | |
'placeholder' => __( 'A link to a video about yourself', 'wp-job-manager-resumes' ), | |
), | |
'resume_category' => array( | |
'label' => __( 'Resume category', 'wp-job-manager-resumes' ), | |
'type' => 'term-multiselect', | |
'taxonomy' => 'resume_category', | |
'required' => true, | |
'placeholder' => '', | |
'priority' => 7 | |
), | |
'resume_content' => array( | |
'label' => __( 'Resume Content', 'wp-job-manager-resumes' ), | |
'type' => 'wp-editor', | |
'required' => true, | |
'placeholder' => '', | |
'priority' => 8 | |
), | |
'resume_skills' => array( | |
'label' => __( 'Skills', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => false, | |
'placeholder' => __( 'Comma separate a list of relevant skills', 'wp-job-manager-resumes' ) . $max, | |
'priority' => 9 | |
), | |
'links' => array( | |
'label' => __( 'URL(s)', 'wp-job-manager-resumes' ), | |
'add_row' => __( 'Add URL', 'wp-job-manager-resumes' ), | |
'type' => 'links', // repeated | |
'required' => false, | |
'placeholder' => '', | |
'description' => __( 'Optionally provide links to any of your websites or social network profiles.', 'wp-job-manager-resumes' ), | |
'priority' => 10, | |
'fields' => array( | |
'name' => array( | |
'label' => __( 'Name', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '', | |
'priority' => 1 | |
), | |
'url' => array( | |
'label' => __( 'URL', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '', | |
'priority' => 2 | |
) | |
) | |
), | |
'candidate_education' => array( | |
'label' => __( 'Education', 'wp-job-manager-resumes' ), | |
'add_row' => __( 'Add Education', 'wp-job-manager-resumes' ), | |
'type' => 'education', // repeated | |
'required' => false, | |
'placeholder' => '', | |
'priority' => 11, | |
'fields' => array( | |
'location' => array( | |
'label' => __( 'School name', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'qualification' => array( | |
'label' => __( 'Qualification(s)', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'date' => array( | |
'label' => __( 'Start/end date', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'notes' => array( | |
'label' => __( 'Notes', 'wp-job-manager-resumes' ), | |
'type' => 'textarea', | |
'required' => false, | |
'placeholder' => '' | |
) | |
) | |
), | |
'candidate_experience' => array( | |
'label' => __( 'Experience', 'wp-job-manager-resumes' ), | |
'add_row' => __( 'Add Experience', 'wp-job-manager-resumes' ), | |
'type' => 'experience', // repeated | |
'required' => false, | |
'placeholder' => '', | |
'priority' => 12, | |
'fields' => array( | |
'employer' => array( | |
'label' => __( 'Employer', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'job_title' => array( | |
'label' => __( 'Job Title', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'date' => array( | |
'label' => __( 'Start/end date', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '' | |
), | |
'notes' => array( | |
'label' => __( 'Notes', 'wp-job-manager-resumes' ), | |
'type' => 'textarea', | |
'required' => false, | |
'placeholder' => '' | |
) | |
) | |
), | |
'resume_file' => array( | |
'label' => __( 'Resume file', 'wp-job-manager-resumes' ), | |
'type' => 'file', | |
'required' => false, | |
'ajax' => true, | |
'description' => sprintf( __( 'Optionally upload your resume for employers to view. Max. file size: %s.', 'wp-job-manager-resumes' ), size_format( wp_max_upload_size() ) ), | |
'priority' => 13, | |
'placeholder' => '' | |
), | |
) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this code. I have just one question, how can I add a custom radio button (Yes / No) field for the resume fields. I wish that if the value of radio button is "Yes", a select field appears at the bottom of the radio button and vice versa, if the result is "No", the select field disappears! Thanks