Guest User

Untitled

a guest
Jul 2nd, 2019
98
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. function your_prefix_register_meta_boxes( $meta_boxes ) {
  3.     $meta_boxes[] = array (
  4.         'id' => 'auto-draft-2',
  5.         'title' => 'Member Application Section',
  6.         'pages' => array(
  7.             0 => 'post',
  8.             1 => 'page',
  9.         ),
  10.         'fields' => array(
  11.             array (
  12.                 'id' => 'application_date',
  13.                 'type' => 'date',
  14.                 'name' => 'Application Date',
  15.             ),
  16.             array (
  17.                 'id' => 'company',
  18.                 'type' => 'text',
  19.                 'name' => 'Business Name',
  20.             ),
  21.             array (
  22.                 'id' => 'company_url',
  23.                 'type' => 'url',
  24.                 'name' => 'Business Website',
  25.             ),
  26.             array (
  27.                 'id' => 'company_details',
  28.                 'type' => 'textarea',
  29.                 'name' => 'Business Details',
  30.             ),
  31.             array (
  32.                 'id' => 'what_is_your_preferred',
  33.                 'type' => 'text',
  34.                 'name' => 'What is your preferred method of communication?',
  35.             ),
  36.             array (
  37.                 'id' => 'other',
  38.                 'type' => 'text',
  39.                 'name' => 'Other',
  40.             ),
  41.             array (
  42.                 'id' => 'membership_level_youre_applying_for',
  43.                 'type' => 'text',
  44.                 'name' => 'Membership level you\'re applying for',
  45.             ),
  46.             array (
  47.                 'id' => 'have_you_photographed_animalspets_before',
  48.                 'type' => 'text',
  49.                 'name' => 'Have you photographed animals/pets before?',
  50.             ),
  51.             array (
  52.                 'id' => 'do_you_currently_offer_pro_bono',
  53.                 'type' => 'text',
  54.                 'name' => 'Do you currently offer pro bono services to, or in some way support, an animal shelter or rescue group?',
  55.             ),
  56.             array (
  57.                 'id' => 'if_yes_please_describe_the_services',
  58.                 'type' => 'textarea',
  59.                 'name' => 'If yes, please describe the services you offer and tell us a little bit about how long you’ve worked with the organization and what your role is, for example.',
  60.             ),
  61.             array (
  62.                 'id' => 'if_no_tell_us_a_little_more_about_why',
  63.                 'type' => 'textarea',
  64.                 'name' => 'If no, tell us a little more about why you’d like to get involved and what your experience working with pets/animals has been:',
  65.             ),
  66.             array (
  67.                 'id' => 'what_are_your_goals_of_membership',
  68.                 'type' => 'textarea',
  69.                 'name' => 'What are your goals of membership? What do you hope to gain and contribute to the community of artists at HeARTs Speak?',
  70.             ),
  71.             array (
  72.                 'id' => 'primary_artistic_medium',
  73.                 'type' => 'text',
  74.                 'name' => 'Primary Artistic Medium',
  75.             ),
  76.             array (
  77.                 'id' => 'if_other_please_describe',
  78.                 'type' => 'textarea',
  79.                 'name' => 'If other, please describe:',
  80.             ),
  81.             array (
  82.                 'id' => 'how_did_you_hear_about_hearts_speak',
  83.                 'type' => 'textarea',
  84.                 'name' => 'How did you hear about HeARTs Speak?',
  85.             ),
  86.             array (
  87.                 'id' => 'if_someone_referred_you',
  88.                 'type' => 'text',
  89.                 'name' => 'If someone referred you to to HeARTs Speak, please list their name:',
  90.             ),
  91.             array (
  92.                 'id' => 'hearts_speak_members_provide_their_services',
  93.                 'type' => 'text',
  94.                 'name' => 'HeARTs Speak members provide their services, pro bono, to the animal welfare community. If a shelter or rescue group visited your website or social media, would it be clear to them that you collaborate with your animal welfare peers?',
  95.             ),
  96.             array (
  97.                 'id' => 'if_so_please_provide_a_link',
  98.                 'type' => 'url',
  99.                 'name' => 'If so, please provide a link:',
  100.             ),
  101.             array (
  102.                 'id' => 'i_have_read_and_agree_to_this_statement',
  103.                 'type' => 'text',
  104.                 'name' => 'I have read and agree to this statement:',
  105.                 'desc' => 'HeARTs Speak is grounded in merging the power of art and passion for animals. Animal shelters across the country have made tremendous strides in increasing lifesaving and quality of care for their animals, and the field continues to evolve towards extending compassionate service provision to the people and communities that they serve. In support of those efforts, HeARTs Speak and its members are committed to upholding and advocating for critical tenets of animal welfare such as: spay/neuter, responsible pet ownership, non-discriminatory/breed-neutral policies, owner support services, and adoption.',
  106.             ),
  107.             array (
  108.                 'id' => 'i_have_read_and_agree_to_adhere',
  109.                 'type' => 'text',
  110.                 'name' => 'I have read and agree to adhere to HeARTs Speak\'s Code of Ethics.',
  111.                 'desc' => 'Please continue by reading the HeARTs Speak Code of Ethics before submitting your application.',
  112.             ),
  113.             array (
  114.                 'id' => 'expired_members',
  115.                 'type' => 'text',
  116.                 'name' => 'Expired Members',
  117.             ),
  118.             array (
  119.                 'id' => 'url_22_facebook',
  120.                 'type' => 'url',
  121.                 'name' => 'Business Facebook Page',
  122.             ),
  123.             array (
  124.                 'id' => 'url_23_instagram',
  125.                 'type' => 'url',
  126.                 'name' => 'Instagram',
  127.             ),
  128.             array (
  129.                 'id' => 'url_24_twitter',
  130.                 'type' => 'url',
  131.                 'name' => 'Twitter',
  132.             ),
  133.             array (
  134.                 'id' => 'url_25_google',
  135.                 'type' => 'url',
  136.                 'name' => 'Google Plus',
  137.             ),
  138.             array (
  139.                 'id' => 'image_26',
  140.                 'type' => 'image',
  141.                 'name' => 'Business Logo',
  142.                 'max_file_uploads' => 4,
  143.             ),
  144.             array (
  145.                 'id' => 'text_27_ip_address',
  146.                 'type' => 'text',
  147.                 'name' => 'IP Address',
  148.             ),
  149.             array (
  150.                 'id' => 'text_28_personal_facebook_account',
  151.                 'type' => 'text',
  152.                 'name' => 'Personal Facebook Account Name',
  153.             ),
  154.         ),
  155.         'type' => 'user',
  156.     );
  157.     return $meta_boxes;
  158. }
RAW Paste Data