mh_newsdesk_lite_sanitize_checkbox

The MH Newsdesk lite mh newsdesk lite sanitize checkbox function.

Description

mh_newsdesk_lite_sanitize_checkbox( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'mh_newsdesk_lite_sanitize_checkbox' ) ) { 
  2. require_once '/includes/mh-customizer.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mh_newsdesk_lite_sanitize_checkbox($input); 
  9.  

Defined (1)

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

/includes/mh-customizer.php  
  1. function mh_newsdesk_lite_sanitize_checkbox($input) { 
  2. if ($input == 1) { 
  3. return 1; 
  4. } else { 
  5. return '';