Skip to content

Instantly share code, notes, and snippets.

@ipokkel
Last active June 17, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ipokkel/a32cd697fdbd166a804156492c35bd9a to your computer and use it in GitHub Desktop.
Save ipokkel/a32cd697fdbd166a804156492c35bd9a to your computer and use it in GitHub Desktop.
Change Add Name to Checkout priority
<?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