'; } } add_action( 'wp_head', 'switch_lite_pingback_header' ); //checkbox sanitization function function switch_lite_sanitize_checkbox( $input ){ //returns true if checkbox is checked return ( ( isset( $input ) && true == $input ) ? true : false ); } //select sanitization function function switch_lite_sanitize_select( $input, $setting ){ //input must be a slug: lowercase alphanumeric characters, dashes and underscores are allowed only $input = sanitize_key($input); //get the list of possible select options $choices = $setting->manager->get_control( $setting->id )->choices; //return input if valid or return default option return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); }