mc_pop_mm_add_post_containers

The MailChimp Popup with Exit Support mc pop mm add post containers function.

Description

mc_pop_mm_add_post_containers( $content ); 

Parameters (1)

0. $content
The content.

Usage

  1. if ( !function_exists( 'mc_pop_mm_add_post_containers' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'mailchimp-popup-with-exit-support/mailchimp-popup-mailmunch.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mc_pop_mm_add_post_containers($content); 
  9.  

Defined (1)

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

/mailchimp-popup-mailmunch.php  
  1. function mc_pop_mm_add_post_containers($content) { 
  2. if (is_single() || is_page()) { 
  3. $content = mc_pop_mm_insert_form_after_paragraph("<div class='mailmunch-forms-in-post-middle' style='display: none !important;'></div>", "middle", $content); 
  4. $content = "<div class='mailmunch-forms-before-post' style='display: none !important;'></div>" . $content . "<div class='mailmunch-forms-after-post' style='display: none !important;'></div>"; 
  5.  
  6. return $content;