Last active
August 29, 2015 13:56
-
-
Save amdrew/8855089 to your computer and use it in GitHub Desktop.
Easy Digital Downloads - modify the admin label and checkout label of a payment gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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