Create a gist now

Instantly share code, notes, and snippets.

@sumobi /gist:8855089
Last active Aug 29, 2015

What would you like to do?
Easy Digital Downloads - modify the admin label and checkout label of a payment gateway
<?php
function sumobi_edd_payment_gateways( $gateways ) {
// change this to match the name of your payment gateway
$gateways['2checkout'] = array(
'admin_label' => '2Checkout', // this is the label shown in downloads -> settings -> payment gateways
'checkout_label' => 'Credit Card' // this label is shown at checkout. Here we've changed it from "2Checkout" to "Credit Card"
);
return $gateways;
}
add_filter( 'edd_payment_gateways', 'sumobi_edd_payment_gateways' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment