Last active
August 11, 2019 11:31
-
-
Save pehaa/8d76be41c28aad9818a02dbceab499a8 to your computer and use it in GitHub Desktop.
Custom card notice
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
/* Add this snippet in your child theme functions.php file */ | |
add_action( 'woocommerce_before_cart' , 'my_custom_cart_notice' ); | |
function my_custom_cart_notice() { | |
wc_clear_notices(); | |
wc_print_notice( 'My custom notice text comes here', 'notice' ); | |
wc_clear_notices(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment