Created
April 9, 2018 12:42
-
-
Save corsonr/3ddd2f934cd07fde93141ac0d34e3a61 to your computer and use it in GitHub Desktop.
WooCommerce: checkout page hook sample
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 | |
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