Skip to content

Instantly share code, notes, and snippets.

@greenhornet79
Created May 10, 2016 15:13
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 greenhornet79/3d0ba27116b07c8f426b79a146c93ae8 to your computer and use it in GitHub Desktop.
Save greenhornet79/3d0ba27116b07c8f426b79a146c93ae8 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'leaky_paywall_translate_payment_gateway_slug_to_name', 'leaky_paywall_2checkout_gateway_slug', 10, 2 );
function leaky_paywall_2checkout_gateway_slug( $return, $slug ) {
if ( $slug == '2checkout' ) {
$return = '2checkout';
}
return $return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment