cf_live_gravatar_get_gravatar

The Caldera Forms cf live gravatar get function.

Description

cf_live_gravatar_get_gravatar(); 

Usage

  1. if ( !function_exists( 'cf_live_gravatar_get_gravatar' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-forms/includes/custom_field_class.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cf_live_gravatar_get_gravatar(); 
  7.  

Defined (1)

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

/includes/custom_field_class.php  
  1. function cf_live_gravatar_get_gravatar() { 
  2. $defaults = array( 
  3. email => '',  
  4. 'generator' => 'mystery',  
  5. 'size' => 100 
  6. ); 
  7. $defaults = array_merge( $defaults, $_POST ); 
  8. echo get_avatar( Caldera_Forms::do_magic_tags( $defaults[email] ), (int) $defaults['size'], $defaults['generator']); 
  9. exit;