catchresponsive_sanitize_checkbox

Sanitizes Checkboxes.

Description

catchresponsive_sanitize_checkbox( $checked ); 

Parameters (1)

0. $checked
Entered value

Usage

  1. if ( !function_exists( 'catchresponsive_sanitize_checkbox' ) ) { 
  2. require_once '/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php'; 
  3.  
  4. // entered value 
  5. $checked = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = catchresponsive_sanitize_checkbox($checked); 
  9.  

Defined (1)

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

/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php  
  1. function catchresponsive_sanitize_checkbox( $checked ) { 
  2. // Boolean check. 
  3. return ( ( isset( $checked ) && true == $checked ) ? true : false );