Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created April 13, 2017 13:06
Show Gist options
  • Save rynaldos-zz/d3089178a1b354897689016bd03e2273 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/d3089178a1b354897689016bd03e2273 to your computer and use it in GitHub Desktop.
[WooCommerce] Adding notice to checkout pages
add_action( 'woocommerce_checkout_before_order_review', 'wc_custom_add_checkout_notice', 11 );
function wc_custom_add_checkout_notice() {
wc_print_notice( __( 'your notice message here', 'woocommerce' ), 'notice' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment