You appear to be a bot. Output may be restricted
Description
Sanitize boolean for checkbox.
Usage
$bool = TwentyTwenty_Customize::sanitize_checkbox( $checked );
Parameters
- $checked
- ( bool ) required – Whether or not a box is checked.
Returns
bool
Source
File name: twentytwenty/classes/class-twentytwenty-customize.php
Lines:
1 to 3 of 3
public static function sanitize_checkbox( $checked ) { return ( ( isset( $checked ) && true === $checked ) ? true : false ); }