Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created April 9, 2018 12:42
Show Gist options
  • Save corsonr/3ddd2f934cd07fde93141ac0d34e3a61 to your computer and use it in GitHub Desktop.
Save corsonr/3ddd2f934cd07fde93141ac0d34e3a61 to your computer and use it in GitHub Desktop.
WooCommerce: checkout page hook sample
<?php
add_filter( 'woocommerce_review_order_before_payment', 'add_my_checkout_section' );
function add_my_checkout_section() {
wc_print_notice( apply_filters( 'woocommerce_checkout_my_checkout_section', __( 'Want a phone call before you buy?', 'woocommerce' ) . ' <a href="#">' . __( 'Click here, we call you back!', 'woocommerce' ) . '</a>' ), 'notice' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment