Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
- function your_prefix_register_meta_boxes( $meta_boxes ) {
- $prefix = '';
- $meta_boxes[] = array (
- 'title' => esc_html__( 'Job Application Form', 'text-domain' ),
- 'id' => 'job-application-form',
- 'post_types' => array(
- 0 => 'job-application',
- ),
- 'context' => 'normal',
- 'priority' => 'high',
- 'fields' => array(
- array (
- 'id' => $prefix . 'first-name_yudz9ss1f1r',
- 'type' => 'text',
- 'name' => esc_html__( 'First Name', 'text-domain' ),
- 'admin_columns' => array(
- 'position' => 'replace title',
- 'title' => 'First Name',
- ),
- ),
- array (
- 'id' => $prefix . 'middle-name_n7qdyszlcs',
- 'type' => 'text',
- 'name' => esc_html__( 'Middle Name', 'text-domain' ),
- 'admin_columns' => array(
- 'position' => 'after first-name_yudz9ss1f1r',
- 'title' => 'Middle Name',
- ),
- ),
- array (
- 'id' => $prefix . 'last-name_j82v03p3fma',
- 'type' => 'text',
- 'name' => esc_html__( 'Last Name', 'text-domain' ),
- 'admin_columns' => array(
- 'position' => 'after middle-name_n7qdyszlcs',
- 'title' => 'Last Name',
- ),
- ),
- array (
- 'id' => $prefix . 'phone_v8f0qytaap',
- 'type' => 'text',
- 'name' => esc_html__( 'Phone Number', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'email_mq4fq476xgf',
- 'name' => esc_html__( 'Email', 'text-domain' ),
- 'type' => 'email',
- ),
- array (
- 'id' => $prefix . 'present-address_ckpdi4bgixe',
- 'type' => 'text',
- 'name' => esc_html__( 'Address', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'city_zskr73hgkg',
- 'type' => 'text',
- 'name' => esc_html__( 'City', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'state_0wo702jryoc',
- 'type' => 'text',
- 'name' => esc_html__( 'State', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'zip_hvpou9f8jih',
- 'type' => 'text',
- 'name' => esc_html__( 'Zip', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'position_jwy6u627vxf',
- 'type' => 'text',
- 'name' => esc_html__( 'Position Applied For', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'salary_ihxz4wvcid',
- 'type' => 'text',
- 'name' => esc_html__( 'Salary Desired', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'age_7pzsa3qgxs7',
- 'name' => esc_html__( 'Are you over 18 years of age?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'education_s4c7fob3399',
- 'type' => 'group',
- 'name' => esc_html__( 'Educational Data', 'text-domain' ),
- 'fields' => array(
- array (
- 'id' => $prefix . 'type_s2tk51dy01i',
- 'name' => esc_html__( 'School Type', 'text-domain' ),
- 'type' => 'select',
- 'placeholder' => esc_html__( 'Select an Item', 'text-domain' ),
- 'options' => array(
- 'High School' => esc_html__( 'High School', 'text-domain' ),
- 'College' => esc_html__( 'College', 'text-domain' ),
- 'Graduate School' => esc_html__( 'Graduate School', 'text-domain' ),
- 'Trade, Night, or Correspondence' => esc_html__( 'Trade, Night, or Correspondence', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'school-name_5no5qigs342',
- 'type' => 'textarea',
- 'name' => esc_html__( 'School Info', 'text-domain' ),
- 'desc' => esc_html__( 'School Name, Street Address, City, State, and Zip', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'years_zcozyr3v7q',
- 'type' => 'number',
- 'name' => esc_html__( 'Years Completed', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'degree_3mybwizcsls',
- 'type' => 'text',
- 'name' => esc_html__( 'Degree', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'major_aaiua99ayc',
- 'type' => 'text',
- 'name' => esc_html__( 'Major Course Study', 'text-domain' ),
- ),
- ),
- 'clone' => 1,
- 'default_state' => 'expanded',
- 'add_button' => esc_html__( '+ Add School', 'text-domain' ),
- 'desc' => esc_html__( 'Provide each school that you have attended.', 'text-domain' ),
- 'collapsible' => true,
- 'group_title' => 'School {#}',
- ),
- array (
- 'id' => $prefix . 'honors_8v4b6yos47m',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Honors Received', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'other_9k67dg83kpp',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Other Skills', 'text-domain' ),
- 'desc' => esc_html__( 'List any other job-related skills, qualifications, licenses, professional organizations, etc. that support your application or are applicable to the position you are seeking.', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'name-changes_uyg063f1hq',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Name Changes', 'text-domain' ),
- 'desc' => esc_html__( 'To permit a check of your work and education records, should we be made aware of any changes of name or assumed name that you previously used?', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'experience_bwaertcstcm',
- 'type' => 'group',
- 'name' => esc_html__( 'Employment Experience', 'text-domain' ),
- 'fields' => array(
- array (
- 'id' => $prefix . 'employer_1rhwx3qjcddh',
- 'type' => 'text',
- 'name' => esc_html__( 'Employer', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'employer-address_x430ma0robp',
- 'type' => 'text',
- 'name' => esc_html__( 'Address', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'job-title_znmdnluiwm',
- 'type' => 'text',
- 'name' => esc_html__( 'Job Title', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'supervisor_0vabf3x2wb6n',
- 'type' => 'text',
- 'name' => esc_html__( 'Supervisor', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'reason-leaving_ffr8kz4rb9v',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Reason For Leaving', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'start-date_a0cacccfkcq',
- 'type' => 'date',
- 'name' => esc_html__( 'Start Date', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'end-date_m4q2okj91oc',
- 'type' => 'date',
- 'name' => esc_html__( 'End Date', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'starting-salary_g1jzj2cc0l5',
- 'type' => 'text',
- 'name' => esc_html__( 'Starting Salary', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'ending-salary_heq8trqf9pa',
- 'type' => 'text',
- 'name' => esc_html__( 'Ending Salary', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'task_csqqjfhecp',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Tasks Performed', 'text-domain' ),
- ),
- ),
- 'clone' => 1,
- 'default_state' => 'expanded',
- 'desc' => esc_html__( 'List each job you held. Start with your present or last job. Include military experience. If known by any other name, please indicate.', 'text-domain' ),
- 'add_button' => esc_html__( '+ Add Employment', 'text-domain' ),
- 'collapsible' => true,
- 'group_title' => 'Employment {#}',
- ),
- array (
- 'id' => $prefix . 'employer-contact_q7ix40vt26n',
- 'type' => 'textarea',
- 'name' => esc_html__( 'May we contact your prior employers?', 'text-domain' ),
- 'desc' => esc_html__( 'Please identify any exceptions and reasons for not contacting prior employers.', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'dismissed_lydx2fqmbic',
- 'name' => esc_html__( 'Have you been dismissed or forced to resign form any employment?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'dismissed-explain_q304oxoj16p',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Please explain the reason.', 'text-domain' ),
- 'visible' => array(
- 'when' => array(
- array (
- 0 => 'dismissed_lydx2fqmbic',
- 1 => '=',
- 2 => 'Yes',
- ),
- ),
- 'relation' => 'and',
- ),
- ),
- array (
- 'id' => $prefix . 'employed_hd3n79hktos',
- 'name' => esc_html__( 'Are you currently employed?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'travel_uz05gg75brr',
- 'name' => esc_html__( 'Will you travel if job requires it?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'laid-off_52vr85olkkd',
- 'name' => esc_html__( 'Are you laid off and subject to recall?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'overtime_7u2b9hhtzey',
- 'name' => esc_html__( 'Will you work overtime, if asked?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'not-work_qa0tk6sjkz',
- 'type' => 'textarea',
- 'name' => esc_html__( 'Are there any hours, shifts, or days you will not work?', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'relatives_x60eluoij7',
- 'type' => 'group',
- 'name' => esc_html__( 'Friends or Relatives', 'text-domain' ),
- 'fields' => array(
- array (
- 'id' => $prefix . 'relative-name_fd08ou62tzk',
- 'type' => 'text',
- 'name' => esc_html__( 'Name', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'relative-relationship_2m8uf9wgz77',
- 'type' => 'text',
- 'name' => esc_html__( 'Relationship', 'text-domain' ),
- ),
- ),
- 'clone' => 1,
- 'default_state' => 'expanded',
- 'desc' => esc_html__( 'Do you have any friends or relatives that work here?', 'text-domain' ),
- 'add_button' => esc_html__( '+ Add Friend or Relative', 'text-domain' ),
- 'collapsible' => true,
- 'group_title' => 'Friend/Relative {#}',
- ),
- array (
- 'id' => $prefix . 'references_qsmtjyxm54q',
- 'type' => 'group',
- 'name' => esc_html__( 'Character References', 'text-domain' ),
- 'fields' => array(
- array (
- 'id' => $prefix . 'reference-name_d4nuppt9q9j',
- 'type' => 'text',
- 'name' => esc_html__( 'Name', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'address_n8n185zco6k',
- 'type' => 'text',
- 'name' => esc_html__( 'Address', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'phone_vvpust8ly9',
- 'type' => 'text',
- 'name' => esc_html__( 'Phone', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'occupation_7dol37vkevu',
- 'type' => 'text',
- 'name' => esc_html__( 'Occupation', 'text-domain' ),
- ),
- ),
- 'clone' => 1,
- 'default_state' => 'expanded',
- 'desc' => esc_html__( 'List three persons, NOT RELATED TO YOU, whom you have known at least one year.', 'text-domain' ),
- 'collapsible' => true,
- 'add_button' => esc_html__( '+ Add Reference', 'text-domain' ),
- 'group_title' => 'Reference {#}',
- ),
- array (
- 'id' => $prefix . 'hear-about-us_tthbnz3117e',
- 'type' => 'text',
- 'name' => esc_html__( 'How did you hear about us?', 'text-domain' ),
- ),
- array (
- 'id' => $prefix . 'applied-before_qrj09pa59vk',
- 'name' => esc_html__( 'Have you applied here before?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'date-applied_498zxez5xqg',
- 'type' => 'date',
- 'name' => esc_html__( 'What date did you apply?', 'text-domain' ),
- 'visible' => array(
- 'when' => array(
- array (
- 0 => 'applied-before_qrj09pa59vk',
- 1 => '=',
- 2 => 'Yes',
- ),
- ),
- 'relation' => 'and',
- ),
- ),
- array (
- 'id' => $prefix . 'employed-here_ad4e0z65dw',
- 'name' => esc_html__( 'Have you been employed here before?', 'text-domain' ),
- 'type' => 'radio',
- 'options' => array(
- 'Yes' => esc_html__( 'Yes', 'text-domain' ),
- 'No' => esc_html__( 'No', 'text-domain' ),
- ),
- ),
- array (
- 'id' => $prefix . 'date-employed_c7zibh5vy16',
- 'type' => 'date',
- 'name' => esc_html__( 'What date were you employed?', 'text-domain' ),
- 'visible' => array(
- 'when' => array(
- array (
- 0 => 'employed-here_ad4e0z65dw',
- 1 => '=',
- 2 => 'Yes',
- ),
- ),
- 'relation' => 'and',
- ),
- ),
- ),
- );
- return $meta_boxes;
- }
Add Comment
Please, Sign In to add comment