epm_multicheck_callback

Multicheck Callback.

Description

epm_multicheck_callback( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'epm_multicheck_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/admin/settings/register-settings.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = epm_multicheck_callback($args); 
  9.  

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function epm_multicheck_callback( $args ) { 
  2. global $epm_options; 
  3.  
  4. if ( ! empty( $args['options'] ) ) { 
  5. foreach( $args['options'] as $key => $option ): 
  6. if( isset( $epm_options[$args['id']][$key] ) ) { $enabled = $option; } else { $enabled = NULL; } 
  7. echo '<input name="epm_settings[' . $args['id'] . '][' . $key . ']" id="epm_settings[' . $args['id'] . '][' . $key . ']" type="checkbox" value="' . $option . '" ' . checked($option, $enabled, false) . '/> '; 
  8. echo '<label for="epm_settings[' . $args['id'] . '][' . $key . ']">' . $option . '</label><br/>'; 
  9. endforeach; 
  10. echo '<p class="description">' . $args['desc'] . '</p>';