Skip to content

Instantly share code, notes, and snippets.

@vicskf
Created September 21, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicskf/89c9c73484c068c86cee9267a672ffd3 to your computer and use it in GitHub Desktop.
Save vicskf/89c9c73484c068c86cee9267a672ffd3 to your computer and use it in GitHub Desktop.
TEC - Community Tickets > Change 'PayPal Split Payments' title for custom one
<?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