manager->get_control( $setting->id )->choices; return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } function bakery_confectionery_sanitize_switch( $input ) { if ( true === $input ) { return true; } else { return false; } }