cf_custom_fields_posttype_process
Register this as a processor.
Description
cf_custom_fields_posttype_process( $processors );
Parameters (1)
- 0. $processors
- The processors.
Usage
if ( !function_exists( 'cf_custom_fields_posttype_process' ) ) { require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/to-post-type.php'; } // The processors. $processors = null; // NOTICE! Understand what this does before running. $result = cf_custom_fields_posttype_process($processors);
Defined (1)
The function is defined in the following location(s).
- /includes/to-post-type.php
- function cf_custom_fields_posttype_process($processors) {
- $processors['post_type'] = array(
- "name" => __( 'Save as Post Type', 'caldera-forms-metabox' ),
- "author" => 'Caldera Labs',
- "description" => __( 'Store form entries as a post with custom fields.', 'caldera-forms-metabox' ),
- "post_processor" => 'cf_custom_fields_capture_entry',
- "template" => trailingslashit( CCF_PATH ) . "includes/to-post-type-config.php",
- "icon" => CCF_URL . "/post-type.png",
- "default" => array(
- 'post_status' => "draft"
- ),
- "meta_template" => trailingslashit( CCF_PATH ) . "includes/meta_template.php",
- "magic_tags" => array(
- "ID",
- "permalink"
- )
- );
- return $processors;
- }