Change the Cheque Payment Gateway Title in WooCommerce

Change the cheque payment gateway title in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_gateway_title', 'change_cheque_payment_gateway_title', 100, 2 );
function change_cheque_payment_gateway_title( $title, $payment_id ){
    if( $payment_id === 'cheque' ) {
        $title = __("Something else", "woocommerce");
    }
    return $title;
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.