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