Skip to content

Instantly share code, notes, and snippets.

@juliantrueflynn
Last active October 20, 2016 23:14
Show Gist options
  • Save juliantrueflynn/0d8bc4801bc70f772a0402630fa47e54 to your computer and use it in GitHub Desktop.
Save juliantrueflynn/0d8bc4801bc70f772a0402630fa47e54 to your computer and use it in GitHub Desktop.
// Adding field to /libs/class-acffcb-fields.php
// https://github.com/MWDelaney/acf-flexible-content-blocks/issues/4
function subtitle($thisKey = 'field') {
return(
array (
'key' => $this->key . '-' . $thisKey . '-' . __FUNCTION__,
'label' => 'Subtitle',
'name' => 'block_subtitle',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => 'acf-subtitle',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment