mailmunch-form

Initialize the class and set its properties.


Usage

  1. // basic usage 
  2. echo do_shortcode('[mailmunch-form]'); 
  1. // variable usage 
  2. $result = do_shortcode('[mailmunch-form]'); 
  3. echo $result;  

Defined (1)

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

/mailchimp-popup-mailmunch.php  
  1.  
  2. function mc_pop_mm_shortcode_form($atts) { 
  3. return "<div class='mailmunch-forms-short-code mailmunch-forms-widget-".$atts['id']."' style='display: none !important;'></div>"; 
  4.  
  5. add_shortcode('mailmunch-form', 'mc_pop_mm_shortcode_form'); 
  6.  
  7. function mc_pop_mm_setup() { 
  8. $mm_helpers = new MailchimppopupMailmunchHelpers(); 
  9. $mc_pop_mm_data = unserialize(get_option("mc_pop_mm_data")); 
  10. $mc_pop_mm_data["site_url"] = home_url();