Show! Deu certo.
Muito obrigado!
@denisgomesfranco muito obrigado!
Entendi, acredito.
Mas acho que estou fazendo algo errado.
Ficaria assim?
add_filter( 'woocommerce_gateway_title', 'altera_nome_pagamento', 100, 2 );
function altera_nome_pagamento( $title, $payment_id ){
if( $payment_id === 'InfinitePay' ) {
$title = __("Crédito ou Pix", "woocommerce");
}
return $title;
}
@denisgomesfranco tranquilo? Onde insiro isso?
add_filter( ‘woocommerce_gateway_title’, ‘altera_nome_pagamento’, 100, 2 );
function altera_nome_pagamento( $title, $payment_id ){
if( $payment_id === ‘cheque’ ) {
$title = __(“Nome da forma de pagamento”, “woocommerce”);
}
return $title;
}`