add_action( 'acf/include_fields', function() {
if ( ! function_exists( 'acf_add_local_field_group' ) ) {
return;
}
acf_add_local_field_group( array(
'key' => 'group_68151e9b46965',
'title' => 'Admin Fields',
'fields' => array(
array(
'key' => 'field_68151e9bac726',
'label' => 'price',
'name' => 'price',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_68151ec2ac727',
'label' => 'status',
'name' => 'status',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_68151eeeac728',
'label' => 'lot-number',
'name' => 'lot-number',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 1,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'registration-purchas',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_681adf034afc2',
'title' => 'Consignor Details',
'fields' => array(
array(
'key' => 'field_681adf0353a0d',
'label' => 'owner-name',
'name' => 'owner-name',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681adf6253a0e',
'label' => 'consignor-name',
'name' => 'consignor-name',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681adf6a53a0f',
'label' => 'consignor-email',
'name' => 'consignor-email',
'aria-label' => '',
'type' => 'email',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681adf7153a10',
'label' => 'consignor-primary-phone',
'name' => 'consignor-primary-phone',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681adfa353a11',
'label' => 'consignor-alternate-phone',
'name' => 'consignor-alternate-phone',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681adfae53a12',
'label' => 'consignor-street-address',
'name' => 'consignor-street-address',
'aria-label' => '',
'type' => 'textarea',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'rows' => '',
'placeholder' => '',
'new_lines' => '',
),
array(
'key' => 'field_681ae23cf5620',
'label' => 'consignor-city',
'name' => 'consignor-city',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae279f5621',
'label' => 'consignor-other-city',
'name' => 'consignor-other-city',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae281f5622',
'label' => 'consignor-province',
'name' => 'consignor-province',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae295f5623',
'label' => 'consignor-other-province',
'name' => 'consignor-other-province',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae29ef5624',
'label' => 'consignor-country',
'name' => 'consignor-country',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae2a5f5625',
'label' => 'consignor-other-country',
'name' => 'consignor-other-country',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae2adf5626',
'label' => 'postal-code',
'name' => 'postal-code',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ae2b7f5627',
'label' => 'zip-code',
'name' => 'zip-code',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_68184b9dc9cd4',
'title' => 'Payment Details',
'fields' => array(
array(
'key' => 'field_68184b9ec9d5f',
'label' => 'Name On Card',
'name' => 'name_on_card',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681a8482c6ac9',
'label' => 'Billing Address',
'name' => 'billing_address',
'aria-label' => '',
'type' => 'textarea',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'rows' => '',
'placeholder' => '',
'new_lines' => '',
),
array(
'key' => 'field_681a8531c6aca',
'label' => 'Total Billing',
'name' => 'total-billing',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681a8553c6acc',
'label' => 'authorize-net',
'name' => 'authorize-net',
'aria-label' => '',
'type' => 'textarea',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'rows' => '',
'placeholder' => '',
'new_lines' => '',
),
array(
'key' => 'field_681a8550c6acb',
'label' => 'terms-agreement',
'name' => 'terms-agreement',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_68151d29100dc',
'title' => 'Vehicle Condition',
'fields' => array(
array(
'key' => 'field_68151d7553f00',
'label' => 'main-description',
'name' => 'main-description',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_68151d7f53f01',
'label' => 'options',
'name' => 'options',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_68151d9653f02',
'label' => 'additional-parts',
'name' => 'additional-parts',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_6814001229e97',
'title' => 'Vehicle Details',
'fields' => array(
array(
'key' => 'field_6814004845ee8',
'label' => 'no-reserve',
'name' => 'no-reserve',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681400a945ee9',
'label' => 'serial-number',
'name' => 'serial-number',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 1,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681400e845eeb',
'label' => 'odometer-reading',
'name' => 'odometer-reading',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 1,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814010645eec',
'label' => 'body-style',
'name' => 'body-style',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814011445eed',
'label' => 'engine-size',
'name' => 'engine-size',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814013745eee',
'label' => 'body-colour',
'name' => 'body-colour',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814014a45eef',
'label' => 'interior-colour',
'name' => 'interior-colour',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814014e45ef0',
'label' => 'top-colour',
'name' => 'top-colour',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814015945ef1',
'label' => 'transmission-type',
'name' => 'transmission-type',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6814016545ef2',
'label' => 'vehicle-photos',
'name' => 'vehicle-photos',
'aria-label' => '',
'type' => 'gallery',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'library' => 'all',
'min' => '',
'max' => '',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
'insert' => 'append',
'preview_size' => 'medium',
),
array(
'key' => 'field_68151e0187f12',
'label' => 'feature-image',
'name' => 'feature-image',
'aria-label' => '',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
'allow_in_bindings' => 0,
'preview_size' => 'medium',
),
array(
'key' => 'field_681691763758e',
'label' => 'registered-province',
'name' => 'registered-province',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681a8647b74e7',
'label' => 'outside-canada',
'name' => 'outside-canada',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6816918b3758f',
'label' => 'type-of-title',
'name' => 'type-of-title',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac2e11a10a',
'label' => 'title-explanation',
'name' => 'title-explanation',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681a8656b74e8',
'label' => 'licensed-dealer',
'name' => 'licensed-dealer',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac2771a108',
'label' => 'gst-number',
'name' => 'gst-number',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac27c1a109',
'label' => 'liens',
'name' => 'liens',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac3191a10c',
'label' => 'lien-holder',
'name' => 'lien-holder',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac3201a10d',
'label' => 'lien-amount',
'name' => 'lien-amount',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac3991a10e',
'label' => 'insurance-value',
'name' => 'insurance-value',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac3ab1a10f',
'label' => 'any-damage',
'name' => 'any-damage',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681ac3b01a110',
'label' => 'damage-details',
'name' => 'damage-details',
'aria-label' => '',
'type' => 'textarea',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'rows' => '',
'placeholder' => '',
'new_lines' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'auction-vehicle',
),
),
array(
array(
'param' => 'page_type',
'operator' => '==',
'value' => 'posts_page',
),
),
),
'menu_order' => 0,
'position' => 'acf_after_title',
'style' => 'seamless',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_6813ff924e83e',
'title' => 'Vehicle Make & Models',
'fields' => array(
array(
'key' => 'field_68141706b7fee',
'label' => 'vehicle make',
'name' => 'vehicle_make',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6813ff92519d0',
'label' => 'acura models',
'name' => 'acura_models',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_68141706b7fee',
'operator' => '==',
'value' => 'Acura',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6813ff9251a07',
'label' => 'audi models',
'name' => 'audi_models',
'aria-label' => '',
'type' => 'number',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_68141706b7fee',
'operator' => '==',
'value' => 'audi',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'min' => '',
'max' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'step' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_681518d23cfe2',
'label' => 'model',
'name' => 'model',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'auction-vehicle',
),
),
array(
array(
'param' => 'page_type',
'operator' => '==',
'value' => 'posts_page',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'seamless',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
acf_add_local_field_group( array(
'key' => 'group_6813f99949bb8',
'title' => 'Vehicle Name-year',
'fields' => array(
array(
'key' => 'field_6813f999c8772',
'label' => 'vehicle make',
'name' => 'vehicle-make',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 0,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_6813f9fec8773',
'label' => 'year',
'name' => 'year',
'aria-label' => '',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'allow_in_bindings' => 1,
'placeholder' => '',
'prepend' => '',
'append' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'auction-vehicle',
),
array(
'param' => 'post_template',
'operator' => '==',
'value' => 'elementor_header_footer',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'seamless',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
'show_in_rest' => 0,
) );
} );
add_action( 'init', function() {
register_taxonomy( 'auction-year', array(
0 => 'auction-vehicle',
), array(
'labels' => array(
'name' => 'Auction Years',
'singular_name' => 'Auction Year',
'menu_name' => 'Auction Years',
'all_items' => 'All Auction Years',
'edit_item' => 'Edit Auction Year',
'view_item' => 'View Auction Year',
'update_item' => 'Update Auction Year',
'add_new_item' => 'Add New Auction Year',
'new_item_name' => 'New Auction Year Name',
'search_items' => 'Search Auction Years',
'popular_items' => 'Popular Auction Years',
'separate_items_with_commas' => 'Separate auction years with commas',
'add_or_remove_items' => 'Add or remove auction years',
'choose_from_most_used' => 'Choose from the most used auction years',
'not_found' => 'No auction years found',
'no_terms' => 'No auction years',
'items_list_navigation' => 'Auction Years list navigation',
'items_list' => 'Auction Years list',
'back_to_items' => '← Go to auction years',
'item_link' => 'Auction Year Link',
'item_link_description' => 'A link to a auction year',
),
'public' => true,
'show_in_menu' => true,
'show_in_rest' => true,
) );
} );
add_action( 'init', function() {
register_post_type( 'auction-vehicle', array(
'labels' => array(
'name' => 'Auction Vehicles',
'singular_name' => 'Auction Vehicle',
'menu_name' => 'Auction Vehicles',
'all_items' => 'All Auction Vehicles',
'edit_item' => 'Edit Auction Vehicle',
'view_item' => 'View Auction Vehicle',
'view_items' => 'View Auction Vehicles',
'add_new_item' => 'Add New Auction Vehicle',
'add_new' => 'Add New Auction Vehicle',
'new_item' => 'New Auction Vehicle',
'parent_item_colon' => 'Parent Auction Vehicle:',
'search_items' => 'Search Auction Vehicles',
'not_found' => 'No auction vehicles found',
'not_found_in_trash' => 'No auction vehicles found in Trash',
'archives' => 'Auction Vehicle Archives',
'attributes' => 'Auction Vehicle Attributes',
'insert_into_item' => 'Insert into auction vehicle',
'uploaded_to_this_item' => 'Uploaded to this auction vehicle',
'filter_items_list' => 'Filter auction vehicles list',
'filter_by_date' => 'Filter auction vehicles by date',
'items_list_navigation' => 'Auction Vehicles list navigation',
'items_list' => 'Auction Vehicles list',
'item_published' => 'Auction Vehicle published.',
'item_published_privately' => 'Auction Vehicle published privately.',
'item_reverted_to_draft' => 'Auction Vehicle reverted to draft.',
'item_scheduled' => 'Auction Vehicle scheduled.',
'item_updated' => 'Auction Vehicle updated.',
'item_link' => 'Auction Vehicle Link',
'item_link_description' => 'A link to a auction vehicle.',
),
'public' => true,
'show_in_rest' => true,
'menu_icon' => 'dashicons-admin-post',
'supports' => array(
0 => 'title',
1 => 'editor',
2 => 'thumbnail',
3 => 'custom-fields',
),
'taxonomies' => array(
0 => 'auction-year',
),
'delete_with_user' => false,
) );
} );