Last active
June 17, 2020 13:02
-
-
Save ipokkel/a32cd697fdbd166a804156492c35bd9a to your computer and use it in GitHub Desktop.
Change Add Name to Checkout priority
This file contains 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 // Do not copy this line | |
/* Load add name to checkout (pmproan2c) later than default | |
* Can be used to reposition name fields when multiple custom fields are | |
* loaded after the password field on the checkout page | |
*/ | |
function my_pmproan2c_change_priority() { | |
remove_action( 'pmpro_checkout_after_password', 'pmproan2c_pmpro_checkout_after_password' ); | |
add_action( 'pmpro_checkout_after_password', 'pmproan2c_pmpro_checkout_after_password' ); | |
} | |
add_action( 'init', 'my_pmproan2c_change_priority' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment