mc4wp_checkbox

Echoes a sign-up checkbox.

Description

mc4wp_checkbox(); 

Usage

  1. if ( !function_exists( 'mc4wp_checkbox' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'mailchimp-for-wordpress-lite/includes/functions/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = mc4wp_checkbox(); 
  7.  

Defined (1)

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

/includes/functions/template.php  
  1. function mc4wp_checkbox() { 
  2. $checkbox_manager = MC4WP_Lite::instance()->get_checkbox_manager(); 
  3.  
  4. // manually instantiate comment form integration class 
  5. if( ! isset( $checkbox_manager->integrations['comment_form'] ) ) { 
  6. $checkbox_manager->integrations['comment_form'] = new MC4WP_Comment_Form_Integration(); 
  7.  
  8. $checkbox_manager->integrations['comment_form']->output_checkbox();