jetpack_content_options_sanitize_checkbox

Sanitize the checkbox.

Description

(boolean|string) jetpack_content_options_sanitize_checkbox( (int) $input ); 

Returns (boolean|string)

Parameters (1)

0. $input (int)
The input.

Usage

  1. if ( !function_exists( 'jetpack_content_options_sanitize_checkbox' ) ) { 
  2. require_once '/modules/theme-tools/content-options/customizer.php'; 
  3.  
  4. // The input. 
  5. $input = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_content_options_sanitize_checkbox($input); 
  9.  

Defined (1)

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

/modules/theme-tools/content-options/customizer.php  
  1. function jetpack_content_options_sanitize_checkbox( $input ) { 
  2. return ( 1 == $input ) ? 1 : '';