cf_custom_fields_meta_template

Set template for meta fields.

Description

cf_custom_fields_meta_template(); 

Usage

  1. if ( !function_exists( 'cf_custom_fields_meta_template' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/to-post-type.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cf_custom_fields_meta_template(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/to-post-type.php  
  1. function cf_custom_fields_meta_template() { 
  2. ?> 
  3. <script type="text/html" id="post-meta-field-tmpl"> 
  4. <div class="caldera-config-group"> 
  5. <label>Field Name<input type="text" class="block-input field-config" name="{{_name}}[metakey][]" value="{{metakey}}"></label> 
  6. <div class="caldera-config-field"> 
  7. <div>Value Field</div> 
  8. <div style="width: 280px; display:inline-block;">{{{_field slug="meta_field" array="true"}}}</div> 
  9. <button class="button remove-meta-field{{_id}}" type="button"><?php echo __('Remove', 'caldera-forms'); ?></button> 
  10. </div> 
  11. </div> 
  12. </script> 
  13. <?php