cf_custom_fields_meta_template
Set template for meta fields.
Description
cf_custom_fields_meta_template();
Usage
if ( !function_exists( 'cf_custom_fields_meta_template' ) ) { require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/to-post-type.php'; } // NOTICE! Understand what this does before running. $result = cf_custom_fields_meta_template();
Defined (1)
The function is defined in the following location(s).
- /includes/to-post-type.php
- function cf_custom_fields_meta_template() {
- ?>
- <script type="text/html" id="post-meta-field-tmpl">
- <div class="caldera-config-group">
- <label>Field Name<input type="text" class="block-input field-config" name="{{_name}}[metakey][]" value="{{metakey}}"></label>
- <div class="caldera-config-field">
- <div>Value Field</div>
- <div style="width: 280px; display:inline-block;">{{{_field slug="meta_field" array="true"}}}</div>
- <button class="button remove-meta-field{{_id}}" type="button"><?php echo __('Remove', 'caldera-forms'); ?></button>
- </div>
- </div>
- </script>
- <?php