Created
April 18, 2019 13:59
-
-
Save kimcoleman/9aabca4cc52014a80ea402ce7cf53e85 to your computer and use it in GitHub Desktop.
Add some divs to create 2 columns for Billing Address and Payment Information Fields at membership checkout.
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 | |
/** | |
* Add some divs to create 2 columns for Billing Address and Payment Information Fields at membership checkout. | |
*/ | |
function pmpro_checkout_columns_divs_after_user_fields() { | |
echo '<div class="row"><div class="medium-6 columns">'; | |
} | |
add_action( 'pmpro_checkout_after_user_fields', 'pmpro_checkout_columns_divs_after_user_fields', 1 ); | |
function pmpro_checkout_columns_divs_after_billing_fields() { | |
echo '</div><div class="medium-6 columns">'; | |
} | |
add_action( 'pmpro_checkout_after_billing_fields', 'pmpro_checkout_columns_divs_after_billing_fields', 1 ); | |
function pmpro_checkout_columns_divs_after_payment_information_fields() { | |
echo '</div></div>'; | |
} | |
add_action( 'pmpro_checkout_after_payment_information_fields', 'pmpro_checkout_columns_divs_after_payment_information_fields', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment