Guest User

Untitled

a guest
Apr 15th, 2020
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
  2.  
  3. function your_prefix_register_meta_boxes( $meta_boxes ) {
  4. $prefix = '';
  5.  
  6. $meta_boxes[] = array (
  7. 'title' => esc_html__( 'Job Application Form', 'text-domain' ),
  8. 'id' => 'job-application-form',
  9. 'post_types' => array(
  10. 0 => 'job-application',
  11. ),
  12. 'context' => 'normal',
  13. 'priority' => 'high',
  14. 'fields' => array(
  15. array (
  16. 'id' => $prefix . 'first-name_yudz9ss1f1r',
  17. 'type' => 'text',
  18. 'name' => esc_html__( 'First Name', 'text-domain' ),
  19. 'required' => 1,
  20. 'admin_columns' => array(
  21. 'position' => 'replace title',
  22. 'title' => 'First Name',
  23. ),
  24. ),
  25. array (
  26. 'id' => $prefix . 'middle-name_n7qdyszlcs',
  27. 'type' => 'text',
  28. 'name' => esc_html__( 'Middle Name', 'text-domain' ),
  29. 'required' => 1,
  30. 'admin_columns' => array(
  31. 'position' => 'after first-name_yudz9ss1f1r',
  32. 'title' => 'Middle Name',
  33. ),
  34. ),
  35. array (
  36. 'id' => $prefix . 'last-name_j82v03p3fma',
  37. 'type' => 'text',
  38. 'name' => esc_html__( 'Last Name', 'text-domain' ),
  39. 'required' => 1,
  40. 'admin_columns' => array(
  41. 'position' => 'after middle-name_n7qdyszlcs',
  42. 'title' => 'Last Name',
  43. ),
  44. ),
  45. array (
  46. 'id' => $prefix . 'phone_v8f0qytaap',
  47. 'type' => 'text',
  48. 'name' => esc_html__( 'Phone Number', 'text-domain' ),
  49. ),
  50. array (
  51. 'id' => $prefix . 'email_mq4fq476xgf',
  52. 'name' => esc_html__( 'Email', 'text-domain' ),
  53. 'type' => 'email',
  54. ),
  55. array (
  56. 'id' => $prefix . 'present-address_ckpdi4bgixe',
  57. 'type' => 'text',
  58. 'name' => esc_html__( 'Address', 'text-domain' ),
  59. 'required' => 1,
  60. ),
  61. array (
  62. 'id' => $prefix . 'city_zskr73hgkg',
  63. 'type' => 'text',
  64. 'name' => esc_html__( 'City', 'text-domain' ),
  65. 'required' => 1,
  66. ),
  67. array (
  68. 'id' => $prefix . 'state_0wo702jryoc',
  69. 'type' => 'text',
  70. 'name' => esc_html__( 'State', 'text-domain' ),
  71. 'required' => 1,
  72. ),
  73. array (
  74. 'id' => $prefix . 'zip_hvpou9f8jih',
  75. 'type' => 'text',
  76. 'name' => esc_html__( 'Zip', 'text-domain' ),
  77. 'required' => 1,
  78. ),
  79. array (
  80. 'id' => $prefix . 'position_jwy6u627vxf',
  81. 'type' => 'text',
  82. 'name' => esc_html__( 'Position Applied For', 'text-domain' ),
  83. 'required' => 1,
  84. ),
  85. array (
  86. 'id' => $prefix . 'salary_ihxz4wvcid',
  87. 'type' => 'text',
  88. 'name' => esc_html__( 'Salary Desired', 'text-domain' ),
  89. 'required' => 1,
  90. ),
  91. array (
  92. 'id' => $prefix . 'age_7pzsa3qgxs7',
  93. 'name' => esc_html__( 'Are you over 18 years of age?', 'text-domain' ),
  94. 'type' => 'radio',
  95. 'options' => array(
  96. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  97. 'No' => esc_html__( 'No', 'text-domain' ),
  98. ),
  99. 'required' => 1,
  100. ),
  101. array (
  102. 'id' => $prefix . 'education_s4c7fob3399',
  103. 'type' => 'group',
  104. 'name' => esc_html__( 'Educational Data', 'text-domain' ),
  105. 'fields' => array(
  106. array (
  107. 'id' => $prefix . 'type_s2tk51dy01i',
  108. 'name' => esc_html__( 'School Type', 'text-domain' ),
  109. 'type' => 'select',
  110. 'placeholder' => esc_html__( 'Select an Item', 'text-domain' ),
  111. 'options' => array(
  112. 'High School' => esc_html__( 'High School', 'text-domain' ),
  113. 'College' => esc_html__( 'College', 'text-domain' ),
  114. 'Graduate School' => esc_html__( 'Graduate School', 'text-domain' ),
  115. 'Trade, Night, or Correspondence' => esc_html__( 'Trade, Night, or Correspondence', 'text-domain' ),
  116. ),
  117. 'required' => 1,
  118. ),
  119. array (
  120. 'id' => $prefix . 'school-name_5no5qigs342',
  121. 'type' => 'textarea',
  122. 'name' => esc_html__( 'School Info', 'text-domain' ),
  123. 'desc' => esc_html__( 'School Name, Street Address, City, State, and Zip', 'text-domain' ),
  124. 'required' => 1,
  125. ),
  126. array (
  127. 'id' => $prefix . 'years_zcozyr3v7q',
  128. 'type' => 'number',
  129. 'name' => esc_html__( 'Years Completed', 'text-domain' ),
  130. 'required' => 1,
  131. ),
  132. array (
  133. 'id' => $prefix . 'degree_3mybwizcsls',
  134. 'type' => 'text',
  135. 'name' => esc_html__( 'Degree', 'text-domain' ),
  136. ),
  137. array (
  138. 'id' => $prefix . 'major_aaiua99ayc',
  139. 'type' => 'text',
  140. 'name' => esc_html__( 'Major Course Study', 'text-domain' ),
  141. ),
  142. ),
  143. 'clone' => 1,
  144. 'default_state' => 'expanded',
  145. 'add_button' => esc_html__( '+ Add School', 'text-domain' ),
  146. 'desc' => esc_html__( 'Provide each school that you have attended.', 'text-domain' ),
  147. 'collapsible' => true,
  148. 'group_title' => 'School {#}',
  149. ),
  150. array (
  151. 'id' => $prefix . 'honors_8v4b6yos47m',
  152. 'type' => 'textarea',
  153. 'name' => esc_html__( 'Honors Received', 'text-domain' ),
  154. ),
  155. array (
  156. 'id' => $prefix . 'other_9k67dg83kpp',
  157. 'type' => 'textarea',
  158. 'name' => esc_html__( 'Other Skills', 'text-domain' ),
  159. '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' ),
  160. ),
  161. array (
  162. 'id' => $prefix . 'name-changes_uyg063f1hq',
  163. 'type' => 'textarea',
  164. 'name' => esc_html__( 'Name Changes', 'text-domain' ),
  165. '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' ),
  166. ),
  167. array (
  168. 'id' => $prefix . 'experience_bwaertcstcm',
  169. 'type' => 'group',
  170. 'name' => esc_html__( 'Employment Experience', 'text-domain' ),
  171. 'fields' => array(
  172. array (
  173. 'id' => $prefix . 'employer_1rhwx3qjcddh',
  174. 'type' => 'text',
  175. 'name' => esc_html__( 'Employer', 'text-domain' ),
  176. 'required' => 1,
  177. ),
  178. array (
  179. 'id' => $prefix . 'employer-address_x430ma0robp',
  180. 'type' => 'text',
  181. 'name' => esc_html__( 'Address', 'text-domain' ),
  182. 'required' => 1,
  183. ),
  184. array (
  185. 'id' => $prefix . 'job-title_znmdnluiwm',
  186. 'type' => 'text',
  187. 'name' => esc_html__( 'Job Title', 'text-domain' ),
  188. 'required' => 1,
  189. ),
  190. array (
  191. 'id' => $prefix . 'supervisor_0vabf3x2wb6n',
  192. 'type' => 'text',
  193. 'name' => esc_html__( 'Supervisor', 'text-domain' ),
  194. 'required' => 1,
  195. ),
  196. array (
  197. 'id' => $prefix . 'reason-leaving_ffr8kz4rb9v',
  198. 'type' => 'textarea',
  199. 'name' => esc_html__( 'Reason For Leaving', 'text-domain' ),
  200. ),
  201. array (
  202. 'id' => $prefix . 'start-date_a0cacccfkcq',
  203. 'type' => 'date',
  204. 'name' => esc_html__( 'Start Date', 'text-domain' ),
  205. 'required' => 1,
  206. ),
  207. array (
  208. 'id' => $prefix . 'end-date_m4q2okj91oc',
  209. 'type' => 'date',
  210. 'name' => esc_html__( 'End Date', 'text-domain' ),
  211. ),
  212. array (
  213. 'id' => $prefix . 'starting-salary_g1jzj2cc0l5',
  214. 'type' => 'text',
  215. 'name' => esc_html__( 'Starting Salary', 'text-domain' ),
  216. ),
  217. array (
  218. 'id' => $prefix . 'ending-salary_heq8trqf9pa',
  219. 'type' => 'text',
  220. 'name' => esc_html__( 'Ending Salary', 'text-domain' ),
  221. ),
  222. array (
  223. 'id' => $prefix . 'task_csqqjfhecp',
  224. 'type' => 'textarea',
  225. 'name' => esc_html__( 'Tasks Performed', 'text-domain' ),
  226. ),
  227. ),
  228. 'clone' => 1,
  229. 'default_state' => 'expanded',
  230. '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' ),
  231. 'add_button' => esc_html__( '+ Add Employment', 'text-domain' ),
  232. 'collapsible' => true,
  233. 'group_title' => 'Employment {#}',
  234. ),
  235. array (
  236. 'id' => $prefix . 'employer-contact_q7ix40vt26n',
  237. 'type' => 'textarea',
  238. 'name' => esc_html__( 'May we contact your prior employers?', 'text-domain' ),
  239. 'desc' => esc_html__( 'Please identify any exceptions and reasons for not contacting prior employers.', 'text-domain' ),
  240. ),
  241. array (
  242. 'id' => $prefix . 'dismissed_lydx2fqmbic',
  243. 'name' => esc_html__( 'Have you been dismissed or forced to resign form any employment?', 'text-domain' ),
  244. 'type' => 'radio',
  245. 'options' => array(
  246. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  247. 'No' => esc_html__( 'No', 'text-domain' ),
  248. ),
  249. 'required' => 1,
  250. ),
  251. array (
  252. 'id' => $prefix . 'dismissed-explain_q304oxoj16p',
  253. 'type' => 'textarea',
  254. 'name' => esc_html__( 'Please explain the reason.', 'text-domain' ),
  255. 'visible' => array(
  256. 'when' => array(
  257. array (
  258. 0 => 'dismissed_lydx2fqmbic',
  259. 1 => '=',
  260. 2 => 'Yes',
  261. ),
  262. ),
  263. 'relation' => 'and',
  264. ),
  265. ),
  266. array (
  267. 'id' => $prefix . 'employed_hd3n79hktos',
  268. 'name' => esc_html__( 'Are you currently employed?', 'text-domain' ),
  269. 'type' => 'radio',
  270. 'options' => array(
  271. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  272. 'No' => esc_html__( 'No', 'text-domain' ),
  273. ),
  274. 'required' => 1,
  275. ),
  276. array (
  277. 'id' => $prefix . 'travel_uz05gg75brr',
  278. 'name' => esc_html__( 'Will you travel if job requires it?', 'text-domain' ),
  279. 'type' => 'radio',
  280. 'options' => array(
  281. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  282. 'No' => esc_html__( 'No', 'text-domain' ),
  283. ),
  284. 'required' => 1,
  285. ),
  286. array (
  287. 'id' => $prefix . 'laid-off_52vr85olkkd',
  288. 'name' => esc_html__( 'Are you laid off and subject to recall?', 'text-domain' ),
  289. 'type' => 'radio',
  290. 'options' => array(
  291. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  292. 'No' => esc_html__( 'No', 'text-domain' ),
  293. ),
  294. 'required' => 1,
  295. ),
  296. array (
  297. 'id' => $prefix . 'overtime_7u2b9hhtzey',
  298. 'name' => esc_html__( 'Will you work overtime, if asked?', 'text-domain' ),
  299. 'type' => 'radio',
  300. 'options' => array(
  301. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  302. 'No' => esc_html__( 'No', 'text-domain' ),
  303. ),
  304. 'required' => 1,
  305. ),
  306. array (
  307. 'id' => $prefix . 'not-work_qa0tk6sjkz',
  308. 'type' => 'textarea',
  309. 'name' => esc_html__( 'Are there any hours, shifts, or days you will not work?', 'text-domain' ),
  310. ),
  311. array (
  312. 'id' => $prefix . 'relatives_x60eluoij7',
  313. 'type' => 'group',
  314. 'name' => esc_html__( 'Friends or Relatives', 'text-domain' ),
  315. 'fields' => array(
  316. array (
  317. 'id' => $prefix . 'relative-name_fd08ou62tzk',
  318. 'type' => 'text',
  319. 'name' => esc_html__( 'Name', 'text-domain' ),
  320. ),
  321. array (
  322. 'id' => $prefix . 'relative-relationship_2m8uf9wgz77',
  323. 'type' => 'text',
  324. 'name' => esc_html__( 'Relationship', 'text-domain' ),
  325. ),
  326. ),
  327. 'clone' => 1,
  328. 'default_state' => 'expanded',
  329. 'desc' => esc_html__( 'Do you have any friends or relatives that work here?', 'text-domain' ),
  330. 'add_button' => esc_html__( '+ Add Friend or Relative', 'text-domain' ),
  331. 'collapsible' => true,
  332. 'group_title' => 'Friend/Relative {#}',
  333. ),
  334. array (
  335. 'id' => $prefix . 'references_qsmtjyxm54q',
  336. 'type' => 'group',
  337. 'name' => esc_html__( 'Character References', 'text-domain' ),
  338. 'fields' => array(
  339. array (
  340. 'id' => $prefix . 'reference-name_d4nuppt9q9j',
  341. 'type' => 'text',
  342. 'name' => esc_html__( 'Name', 'text-domain' ),
  343. ),
  344. array (
  345. 'id' => $prefix . 'address_n8n185zco6k',
  346. 'type' => 'text',
  347. 'name' => esc_html__( 'Address', 'text-domain' ),
  348. ),
  349. array (
  350. 'id' => $prefix . 'phone_vvpust8ly9',
  351. 'type' => 'text',
  352. 'name' => esc_html__( 'Phone', 'text-domain' ),
  353. ),
  354. array (
  355. 'id' => $prefix . 'occupation_7dol37vkevu',
  356. 'type' => 'text',
  357. 'name' => esc_html__( 'Occupation', 'text-domain' ),
  358. ),
  359. ),
  360. 'clone' => 1,
  361. 'default_state' => 'expanded',
  362. 'desc' => esc_html__( 'List three persons, NOT RELATED TO YOU, whom you have known at least one year.', 'text-domain' ),
  363. 'collapsible' => true,
  364. 'add_button' => esc_html__( '+ Add Reference', 'text-domain' ),
  365. 'group_title' => 'Reference {#}',
  366. ),
  367. array (
  368. 'id' => $prefix . 'hear-about-us_tthbnz3117e',
  369. 'type' => 'text',
  370. 'name' => esc_html__( 'How did you hear about us?', 'text-domain' ),
  371. ),
  372. array (
  373. 'id' => $prefix . 'applied-before_qrj09pa59vk',
  374. 'name' => esc_html__( 'Have you applied here before?', 'text-domain' ),
  375. 'type' => 'radio',
  376. 'options' => array(
  377. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  378. 'No' => esc_html__( 'No', 'text-domain' ),
  379. ),
  380. 'required' => 1,
  381. ),
  382. array (
  383. 'id' => $prefix . 'date-applied_498zxez5xqg',
  384. 'type' => 'date',
  385. 'name' => esc_html__( 'What date did you apply?', 'text-domain' ),
  386. 'visible' => array(
  387. 'when' => array(
  388. array (
  389. 0 => 'applied-before_qrj09pa59vk',
  390. 1 => '=',
  391. 2 => 'Yes',
  392. ),
  393. ),
  394. 'relation' => 'and',
  395. ),
  396. ),
  397. array (
  398. 'id' => $prefix . 'employed-here_ad4e0z65dw',
  399. 'name' => esc_html__( 'Have you been employed here before?', 'text-domain' ),
  400. 'type' => 'radio',
  401. 'options' => array(
  402. 'Yes' => esc_html__( 'Yes', 'text-domain' ),
  403. 'No' => esc_html__( 'No', 'text-domain' ),
  404. ),
  405. 'required' => 1,
  406. ),
  407. array (
  408. 'id' => $prefix . 'date-employed_c7zibh5vy16',
  409. 'type' => 'date',
  410. 'name' => esc_html__( 'What date were you employed?', 'text-domain' ),
  411. 'visible' => array(
  412. 'when' => array(
  413. array (
  414. 0 => 'employed-here_ad4e0z65dw',
  415. 1 => '=',
  416. 2 => 'Yes',
  417. ),
  418. ),
  419. 'relation' => 'and',
  420. ),
  421. ),
  422. ),
  423. );
  424.  
  425. return $meta_boxes;
  426. }
RAW Paste Data