How to change woocommerce checkout privacy policy, terms and condition text [closed]

After some digging in WooCommerce github and WordPress github I can say that there isn’t a filter, in WooCommerce, to change that specific text.
What you can do is hook into pre_kses, because that what WooCommerce uses to handle the output and look for privacy policy, change it to what ever you want and you are ready.
Problem is that it will affect all other privacy policy texts that use the same function so do some tests before you go live with this.
Same goes for “terms and conditions” text.

add_filter('pre_kses', 'bt_change_policy_and_conditions_texts');
function bt_change_policy_and_conditions_texts ($string) {
    if (strpos($string, 'privacy policy') !== false) {
        // change 'Something else' to what ever you need
        return str_replace('privacy policy', 'Something else', $string);
    }
    
    if (strpos($string, 'terms and conditions') !== false) {
        // change 'Something else 2' to what ever you need
        return str_replace('terms and conditions', 'Something else 2', $string);
    }
    
    return $string;
}

This goes into functions.php.