Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created April 23, 2015 23:30
Show Gist options
  • Save Shelob9/e689cdb7741d691cfdfe to your computer and use it in GitHub Desktop.
Save Shelob9/e689cdb7741d691cfdfe to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Custom Caldera Forms Field
*/
add_filter('caldera_forms_get_field_types', 'slug_add_field');
function slug_add_field($fieldtypes){
$fieldtypes['field_name'] = array(
"field" => "Field Name",
"file" => " " //@todo path to the file for the field itself.
"category" => "basic", //@todo set category or categories
"description" => " " //@todo set description
"setup" => array(
//optional
)
);
return $fieldtypes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment