shop_messages shortcode requires wc_print_notices

This commit is contained in:
Mike Jolley 2019-02-25 22:01:07 +00:00
parent 8f2efbfef3
commit 8792b53ecb
1 changed files with 3 additions and 0 deletions

View File

@ -588,6 +588,9 @@ class WC_Shortcodes {
* @return string
*/
public static function shop_messages() {
if ( ! function_exists( 'wc_print_notices' ) ) {
return;
}
return '<div class="woocommerce">' . wc_print_notices( true ) . '</div>';
}