Created
April 23, 2015 23:30
-
-
Save Shelob9/e689cdb7741d691cfdfe to your computer and use it in GitHub Desktop.
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
<?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