Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created August 10, 2018 07:04
Show Gist options
  • Save hjanuschka/0961152fc36a5da14fa6a925116cb048 to your computer and use it in GitHub Desktop.
Save hjanuschka/0961152fc36a5da14fa6a925116cb048 to your computer and use it in GitHub Desktop.
<?php
acf_add_local_field_group(array(
'key' => 'group_5878908956b61',
'title' => __('Media: Copyright', 'kmm-media'),
'fields' => array(
array(
'key' => 'field_587890c1ce938',
'label' => __('Copyright', 'kmm-media'),
'name' => 'copyright',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'maxlength' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'show_in_rest' => 1,
'rest_resolve_relations' => 0,
),
),
'location' => array(
array(
array(
'param' => 'attachment',
'operator' => '==',
'value' => 'all',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'description' => 'Media-Library',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment