Skip to content

Instantly share code, notes, and snippets.

@greenhornet79
Created May 10, 2016 15:08
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/a7924ea1fdd3522aeecd8d7b6a2ac32d to your computer and use it in GitHub Desktop.
Save greenhornet79/a7924ea1fdd3522aeecd8d7b6a2ac32d to your computer and use it in GitHub Desktop.
<?php
function leaky_paywall_register_2checkout_gateway( $gateways ) {
$gateways['2checkout'] = array(
'label' => '2Checkout',
'admin_label' => '2Checkout Credit / Debit Card',
'class' => 'Leaky_Paywall_Payment_Gateway_2checkout'
);
return $gateways;
}
add_filter( 'leaky_paywall_payment_gateways', 'leaky_paywall_register_2checkout_gateway', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment