Skip to content

Commit

Permalink
Merge pull request #87 from JarrydLong/ppexpaddon
Browse files Browse the repository at this point in the history
Removes the PPExp Toggle Section for a Check Only level
  • Loading branch information
dparker1005 committed Aug 11, 2023
2 parents 7ad4151 + 1b2f861 commit 4a112a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pmpro-pay-by-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ function pmpropbc_init_include_billing_address_fields()
//hide billing address and payment info fields
add_filter('pmpro_include_billing_address_fields', '__return_false', 20);
add_filter('pmpro_include_payment_information_fields', '__return_false', 20);

//Hide the toggle section if the PayPal Express Add On is active
remove_action( "pmpro_checkout_boxes", "pmproappe_pmpro_checkout_boxes", 20 );
} else {
//keep paypal buttons, billing address fields/etc at checkout
$default_gateway = pmpro_getOption('gateway');
Expand Down

0 comments on commit 4a112a8

Please sign in to comment.