I added a custom snippet to my woocommerce site and now I'm having trouble translating the string to Polylang.
I needed the snippet to add a text above the payment methods, and it works fine, it was added via the Code Snippet plugin (https://wordpress.org/plugins/code-snippets/)
add_action( 'woocommerce_review_order_before_payment', 'wc_privacy_message_below_checkout_button' );
function wc_privacy_message_below_checkout_button() {
echo __('<h3>Metodo di pagamento</h3>', 'text-domain');
}
Now I have inserted an additional snippet to add the string to Polylang, but once updated with the translation nothing happens
add_action('init', function() {
pll_register_string('Metodo di pagamento', 'Metodo di pagamento');
});
How can I solve? Is there another way? Thank You