Change Specific Payment Gateway Title and Description

Table of Contents

  1. Change title
  2. Change description
Change WooCommerce payment gateway title and description
In this example we change “Cash on delivery” payment gateway title and description. The code from this post applies to both “Checkout” and “Pay for order” pages.

Change Title

add_filter( 'woocommerce_gateway_title', 'rudr_change_payment_gateway_title', 25, 2 );

function rudr_change_payment_gateway_title( $title, $gateway_id ){
	if( 'cod' === $gateway_id ) {
		$title = 'By Cash or Credit Card on delivery';

	return $title;

Need custom coding help with WooCommerce payment gateways? – Contact me.

Change Description

The same way but with another filter hook you can do it for a payment method description.

add_filter( 'woocommerce_gateway_description', 'rudr_change_payment_gateway_description', 25, 2 );

function rudr_change_payment_gateway_description( $description, $gateway_id ) {

	if( 'cod' === $gateway_id ) {
		// you can use HTML tags here
		$description = 'Pay with cash upon delivery. Easy-breezy ;)';

	return $description;
Misha Rudrastyh

Misha Rudrastyh

I develop websites since 2008, so it is total of 13 years of experience, oh my gosh. Most of all I love love love to create websites with WordPress and Gutenberg, some ideas and thoughts I share throughout my blog.

Need some developer help? Contact me