shop_messages shortcode requires wc_print_notices
This commit is contained in:
parent
8f2efbfef3
commit
8792b53ecb
|
@ -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>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue