Skip to content

Instantly share code, notes, and snippets.

@anteksiler
Created August 13, 2020 08:15
Show Gist options
  • Save anteksiler/7b09400b89f317ea3276c4a9ab592fcd to your computer and use it in GitHub Desktop.
Save anteksiler/7b09400b89f317ea3276c4a9ab592fcd to your computer and use it in GitHub Desktop.
Checkout Named functions
<?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