Created
July 31, 2017 14:23
-
-
Save andrewlimaza/5d71e6934810b3bc6dca2445191c76aa to your computer and use it in GitHub Desktop.
Add your own HTML instructions to Pay By Check PMPro.
This file contains hidden or 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 | |
/** | |
* This is an example how to add custom HTML instructions for Pay By Check add-on for Paid Memberships Pro | |
* Copy the following code into your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* Visit www.paidmembershipspro.com | |
*/ | |
function add_custom_checkout_instructions_to_pmpro_check() { | |
global $gateway, $pmpro_level; | |
if($gateway == "check" && !pmpro_isLevelFree($pmpro_level)) { | |
?> | |
<h2>Check Instructions</h2> | |
<ul class="my_check_instructions" style="list-style-type: none;"> | |
<li>Bank: Bank Name</li> | |
<li>Account Holder: Company Name</li> | |
<li>Account Number: 1234567890</li> | |
<li>Branch Code: 12345</li> | |
<li>Reference: use your email address as reference</li> | |
</ul> | |
<?php | |
} | |
} | |
add_action( 'pmpro_checkout_after_payment_information_fields', 'add_custom_checkout_instructions_to_pmpro_check' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment