epm_mailchimp_form_shortcode

MailChimp Signup form.

Description

epm_mailchimp_form_shortcode( $atts, (null) $content = null ); 

Parameters (2)

0. $atts
The atts.
1. $content — Optional. (null) => null
The content.

Usage

  1. if ( !function_exists( 'epm_mailchimp_form_shortcode' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/shortcode.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // The content. 
  8. $content = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = epm_mailchimp_form_shortcode($atts, $content); 
  12.  

Defined (1)

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

/includes/shortcode.php  
  1. function epm_mailchimp_form_shortcode( $atts, $content = null ) { 
  2. extract(shortcode_atts(array( 
  3. 'list' => '',  
  4. ), $atts)); 
  5.  
  6. ob_start(); 
  7. get_epm_template( 'mailchimp-form.php', array( 
  8. 'list' => $list,  
  9. )); 
  10. return ob_get_clean();