Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/c56a151e6e1a5586b6aa850a82d0e3e3 to your computer and use it in GitHub Desktop.
Save clifgriffin/c56a151e6e1a5586b6aa850a82d0e3e3 to your computer and use it in GitHub Desktop.
How to Move Billing Address Above Payment Gateways with Checkout for WooCommerce
<?php
// Do NOT include the opening php tag.
// Place in your theme's functions.php file
remove_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_methods', 10 );
remove_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_billing_address', 20 );
add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_billing_address', 10 );
add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_methods', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment