Guest User

Untitled

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