Created
February 13, 2020 05:50
-
-
Save jasperf/c8bfe04cca241d08f34ce65b4ef7b824 to your computer and use it in GitHub Desktop.
Register as private person or company using ACF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_5e44e23f16db9', | |
'title' => 'Custom Registration', | |
'fields' => array( | |
array( | |
'key' => 'field_5e44e2456a4a9', | |
'label' => 'Particulier of Bedrijf', | |
'name' => 'particulier_of_bedrijf', | |
'type' => 'radio', | |
'instructions' => 'Meld je aan als particulier of bedrijf', | |
'required' => 1, | |
'conditional_logic' => 0, | |
'wrapper' => array( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'choices' => array( | |
'particulier' => 'particulier', | |
'bedrijf' => 'bedrijf', | |
), | |
'allow_null' => 0, | |
'other_choice' => 0, | |
'default_value' => '', | |
'layout' => 'vertical', | |
'return_format' => 'value', | |
'save_other_choice' => 0, | |
), | |
), | |
'location' => array( | |
array( | |
array( | |
'param' => 'user_form', | |
'operator' => '==', | |
'value' => 'register', | |
), | |
), | |
), | |
'menu_order' => 0, | |
'position' => 'normal', | |
'style' => 'seamless', | |
'label_placement' => 'top', | |
'instruction_placement' => 'label', | |
'hide_on_screen' => '', | |
'active' => true, | |
'description' => '', | |
)); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment