cf7_infusionsoft_addon_metaboxes

The Contact Form 7 - Infusionsoft Add-on cf7 infusionsoft addon metaboxes function.

Description

cf7_infusionsoft_addon_metaboxes( $post ); 

Parameters (1)

0. $post
The post.

Usage

  1. if ( !function_exists( 'cf7_infusionsoft_addon_metaboxes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/cf7-infusionsoft-addon.php'; 
  3.  
  4. // The post. 
  5. $post = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf7_infusionsoft_addon_metaboxes($post); 
  9.  

Defined (1)

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

/cf7-infusionsoft-addon.php  
  1. function cf7_infusionsoft_addon_metaboxes( $post ) { 
  2. // Add an nonce field so we can check for it later. 
  3. wp_nonce_field( 'cf7_infusionsoft_addon_metaboxes', 'cf7_infusionsoft_addon_metaboxes_nonce' ); 
  4.  
  5. /** 
  6. * Use get_post_meta() to retrieve an existing value 
  7. * from the database and use the value for the form. 
  8. */ 
  9. $infusionsoft_addon_tag_value = get_post_meta( $post->id(), '_cf7_infusionsoft_addon_tag_key', true ); 
  10.  
  11. echo '<label for="cf7_infusionsoft_addon_tags"><strong>Contact Tags: </strong></label> '; 
  12. echo '<input type="text" placeholder="infusionsoft_tag_name" id="cf7_infusionsoft_addon_tags" name="cf7_infusionsoft_addon_tags" value="' . esc_attr( $infusionsoft_addon_tag_value ) . '" size="25" />'; 
  13. echo '<p class="howto">Separate multiple tags with commas. These must already be defined in InfusionSoft.</p>';