Created
March 4, 2017 13:25
-
-
Save IacopoC/1f27a6c9ac9360eac1b37cc90d29cc41 to your computer and use it in GitHub Desktop.
Function useful to display error notice in WooCommerce
This file contains hidden or 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 | |
// Wc add notice can be used to create error, notice or success messages in WooCommerce. In this case we see error notice. | |
wc_add_notice( $message, $notice_type = 'error' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment