Advertisement
darrenbachan

Untitled

Jun 7th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.11 KB | None | 0 0
  1. if(function_exists("register_field_group"))
  2. {
  3.     register_field_group(array (
  4.         'id' => 'acf_upcoming-game-info',
  5.         'title' => 'Upcoming Game Info',
  6.         'fields' => array (
  7.             array (
  8.                 'key' => 'field_5755cc9d5298b',
  9.                 'label' => 'Release Date',
  10.                 'name' => 'release_date',
  11.                 'type' => 'date_picker',
  12.                 'instructions' => 'Please select the release date of the game.',
  13.                 'required' => 1,
  14.                 'date_format' => 'yymmdd',
  15.                 'display_format' => 'mm/dd/yy',
  16.                 'first_day' => 1,
  17.             ),
  18.             array (
  19.                 'key' => 'field_5755e7a41a2ae',
  20.                 'label' => 'Publisher',
  21.                 'name' => 'publisher',
  22.                 'type' => 'checkbox',
  23.                 'instructions' => 'Select the game\'s Publisher.',
  24.                 'choices' => array (
  25.                     'Capcom' => 'Capcom',
  26.                     'Konami' => 'Konami',
  27.                     'Blizzard' => 'Blizzard',
  28.                     'Sony Computer Entertainment' => 'Sony Computer Entertainment',
  29.                     'Nintendo' => 'Nintendo',
  30.                     'Sega' => 'Sega',
  31.                     'Ubisoft' => 'Ubisoft',
  32.                     '2k' => '2k',
  33.                     'Telltale Games' => 'Telltale Games',
  34.                     'Valve Corporation' => 'Valve Corporation',
  35.                     'Rockstar Games' => 'Rockstar Games',
  36.                     'Electronic Arts' => 'Electronic Arts',
  37.                     'Atlus' => 'Atlus',
  38.                     'Square Enix' => 'Square Enix',
  39.                     'Activision' => 'Activision',
  40.                     'Bandai Namco' => 'Bandai Namco',
  41.                     'Bungie' => 'Bungie',
  42.                     'Deep Silver' => 'Deep Silver',
  43.                     'Microsoft' => 'Microsoft',
  44.                 ),
  45.                 'default_value' => '',
  46.                 'layout' => 'vertical',
  47.             ),
  48.             array (
  49.                 'key' => 'field_5755ea49aa67b',
  50.                 'label' => 'Developer',
  51.                 'name' => 'developer',
  52.                 'type' => 'checkbox',
  53.                 'instructions' => 'Select the game\'s Publisher.',
  54.                 'choices' => array (
  55.                     'Capcom' => 'Capcom',
  56.                     'Konami' => 'Konami',
  57.                     'Blizzard' => 'Blizzard',
  58.                     'Sony Computer Entertainment' => 'Sony Computer Entertainment',
  59.                     'Nintendo' => 'Nintendo',
  60.                     'Sega' => 'Sega',
  61.                     'Ubisoft' => 'Ubisoft',
  62.                     '2k' => '2k',
  63.                     'Telltale Games' => 'Telltale Games',
  64.                     'Valve Corporation' => 'Valve Corporation',
  65.                     'Rockstar Games' => 'Rockstar Games',
  66.                     'Electronic Arts' => 'Electronic Arts',
  67.                     'Atlus' => 'Atlus',
  68.                     'Square Enix' => 'Square Enix',
  69.                     'Activision' => 'Activision',
  70.                     'Bandai Namco' => 'Bandai Namco',
  71.                     'Bungie' => 'Bungie',
  72.                     'Deep Silver' => 'Deep Silver',
  73.                     'Microsoft' => 'Microsoft',
  74.                 ),
  75.                 'default_value' => '',
  76.                 'layout' => 'vertical',
  77.             ),
  78.             array (
  79.                 'key' => 'field_57563706c9de9',
  80.                 'label' => 'Youtube Link',
  81.                 'name' => 'youtube_link',
  82.                 'type' => 'text',
  83.                 'instructions' => 'Does this game have a trailer out?',
  84.                 'default_value' => '',
  85.                 'placeholder' => '',
  86.                 'prepend' => '',
  87.                 'append' => '',
  88.                 'formatting' => 'html',
  89.                 'maxlength' => '',
  90.             ),
  91.         ),
  92.         'location' => array (
  93.             array (
  94.                 array (
  95.                     'param' => 'post_type',
  96.                     'operator' => '==',
  97.                     'value' => 'upcoming-games',
  98.                     'order_no' => 0,
  99.                     'group_no' => 0,
  100.                 ),
  101.             ),
  102.         ),
  103.         'options' => array (
  104.             'position' => 'acf_after_title',
  105.             'layout' => 'default',
  106.             'hide_on_screen' => array (
  107.             ),
  108.         ),
  109.         'menu_order' => 0,
  110.     ));
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement