Created
September 21, 2017 15:48
-
-
Save vicskf/89c9c73484c068c86cee9267a672ffd3 to your computer and use it in GitHub Desktop.
TEC - Community Tickets > Change 'PayPal Split Payments' title for custom one
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 | |
/** | |
* Community Tickets > Change 'PayPal Split Payments' title for custom one | |
* | |
* Author: Barry Hughes | |
*/ | |
add_action( 'init', function() { | |
$gateways = WC_Payment_Gateways::instance()->get_available_payment_gateways(); | |
if ( isset( $gateways['tribe-paypal-adaptive-payments'] ) ) { | |
$gateways['tribe-paypal-adaptive-payments']->method_title = 'PayPal'; | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment