Created
August 13, 2020 08:15
-
-
Save anteksiler/7b09400b89f317ea3276c4a9ab592fcd to your computer and use it in GitHub Desktop.
Checkout Named functions
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 | |
/** | |
* WooCommerce Checkout related functions | |
* | |
* @package WordPress | |
* @subpackage fifthavenue | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
if ( ! thb_wc_supported() ) { | |
return; | |
} | |
if ( is_admin() ) { | |
return; | |
} | |
/* Checkout */ | |
function thb_checkout_before_customer_details() { | |
echo '<div class="row"><div class="small-12 medium-8 columns thb-checkout-form-column">'; | |
} | |
add_action( | |
'woocommerce_checkout_before_customer_details', | |
'thb_checkout_before_customer_details', | |
5, | |
); | |
function thb_checkout_after_customer_details() { | |
echo '</div><div class="small-12 medium-4 columns">'; | |
} | |
add_action( | |
'woocommerce_checkout_after_customer_details', | |
'thb_checkout_after_customer_details', | |
30 | |
); | |
function thb_checkout_after_order_review() { | |
echo '</div></div>'; | |
} | |
add_action( | |
'woocommerce_checkout_after_order_review', | |
'thb_checkout_after_order_review', | |
30 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment