Created
March 8, 2017 21:18
-
-
Save lukehollis/75dae24e4d2cc4d075bb0b1a478dc02b to your computer and use it in GitHub Desktop.
ACF Sponsorship Ad Spots
This file contains 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
if(function_exists("register_field_group")) | |
{ | |
register_field_group(array ( | |
'id' => 'acf_sponsor-ads', | |
'title' => 'Sponsor Ads', | |
'fields' => array ( | |
array ( | |
'key' => 'field_58c0739e3a351', | |
'label' => 'sponsorship_ad_image', | |
'name' => 'sponsorship_ad_image', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_58c07471b2b88', | |
'label' => 'sponsorship_ad_label', | |
'name' => 'sponsorship_ad_label', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_58c0747b86417', | |
'label' => 'sponsorship_ad_link', | |
'name' => 'sponsorship_ad_link', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_58c0749274d54', | |
'label' => 'sponsorship_ad_image_light', | |
'name' => 'sponsorship_ad_image_light', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'options_page', | |
'operator' => '==', | |
'value' => 'acf-options-global', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'normal', | |
'layout' => 'no_box', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 0, | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment