Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created January 2, 2017 23:03
Show Gist options
  • Save WPprodigy/d8cc49ac9ebbf0c8afe36b724ed1360a to your computer and use it in GitHub Desktop.
Save WPprodigy/d8cc49ac9ebbf0c8afe36b724ed1360a to your computer and use it in GitHub Desktop.
Remove order delivery area and add it back in at an earlier priority
add_action( 'wp', 'wc_ninja_test' );
function wc_ninja_test() {
$main_instance = WC_OD();
$checkout_class = $main_instance->checkout();
remove_action( 'woocommerce_checkout_shipping', array( $checkout_class, 'checkout_content' ), 99 );
add_action( 'woocommerce_checkout_shipping', array( $checkout_class, 'checkout_content' ), 15 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment