Test
if( function_exists(‘acf_add_local_field_group’) ):
acf_add_local_field_group(array(
‘key’ => ‘group_61cca09e858c2’,
‘title’ => ‘Sponsors Settings’,
‘fields’ => array(
array(
‘key’ => ‘field_61cca0ac90af2’,
‘label’ => ‘Sponsor Logo’,
‘name’ => ‘sponsor_logo’,
‘aria-label’ => ”,
‘type’ => ‘image’,
‘instructions’ => ”,
‘required’ => 0,
‘conditional_logic’ => 0,
‘wrapper’ => array(
‘width’ => ”,
‘class’ => ”,
‘id’ => ”,
),
‘return_format’ => ‘url’,
‘library’ => ‘all’,
‘min_width’ => ”,
‘min_height’ => 600,
‘min_size’ => ”,
‘max_width’ => ”,
‘max_height’ => ”,
‘max_size’ => ”,
‘mime_types’ => ”,
‘preview_size’ => ‘full’,
),
array(
‘key’ => ‘field_61cca0c490af3’,
‘label’ => ‘Sponsors URL’,
‘name’ => ‘sponsors_url’,
‘aria-label’ => ”,
‘type’ => ‘text’,
‘instructions’ => ”,
‘required’ => 0,
‘conditional_logic’ => 0,
‘wrapper’ => array(
‘width’ => ”,
‘class’ => ”,
‘id’ => ”,
),
‘default_value’ => ”,
‘placeholder’ => ”,
‘prepend’ => ”,
‘append’ => ”,
‘maxlength’ => ”,
),
array(
‘key’ => ‘field_61cca9b652fde’,
‘label’ => ‘Is mega sponsor ?’,
‘name’ => ‘is_mega_sponsor’,
‘aria-label’ => ”,
‘type’ => ‘true_false’,
‘instructions’ => ‘If checked, the sponsors will display in the home page “Mega Sponsors” Section’,
‘required’ => 0,
‘conditional_logic’ => 0,
‘wrapper’ => array(
‘width’ => ”,
‘class’ => ”,
‘id’ => ”,
),
‘message’ => ”,
‘default_value’ => 0,
‘ui’ => 0,
‘ui_on_text’ => ”,
‘ui_off_text’ => ”,
),
),
‘location’ => array(
array(
array(
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘sponsors’,
),
),
),
‘menu_order’ => 0,
‘position’ => ‘normal’,
‘style’ => ‘default’,
‘label_placement’ => ‘top’,
‘instruction_placement’ => ‘label’,
‘hide_on_screen’ => ”,
‘active’ => true,
‘description’ => ”,
‘show_in_rest’ => 0,
));
endif;